Fix tests.
[redakcja.git] / apps / cover / tests.py
index 5b4b885..be8d003 100644 (file)
@@ -13,8 +13,8 @@ class FlickrTests(TestCase):
         form = FlickrForm({"source_url": "https://www.flickr.com/photos/rczajka/6941928577/in/photostream"})
         self.assertTrue(form.is_valid())
         self.assertEqual(form.cleaned_data['source_url'], "https://www.flickr.com/photos/rczajka/6941928577/")
-        self.assertEqual(form.cleaned_data['author'], "rczajka@Flickr")
+        self.assertEqual(form.cleaned_data['author'], "Radek Czajka@Flickr")
         self.assertEqual(form.cleaned_data['title'], u"Pirate StaƄczyk")
         self.assertEqual(form.cleaned_data['license_name'], "CC BY 2.0")
-        self.assertEqual(form.cleaned_data['license_url'], "https://creativecommons.org/licenses/by/2.0/deed.en")
-        self.assertEqual(form.cleaned_data['download_url'], "https://farm8.staticflickr.com/7069/6941928577_415844c58e_o.jpg")
+        self.assertEqual(form.cleaned_data['license_url'], "https://creativecommons.org/licenses/by/2.0/")
+        self.assertTrue('.staticflickr.com' in form.cleaned_data['download_url'])