X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/aa126d79c71639bd5bdc57fe61bf2cc121a5beb5..e81283e08cca4c47d57dd0aef34a5c598931a9d2:/apps/cover/tests.py?ds=inline diff --git a/apps/cover/tests.py b/apps/cover/tests.py index 2f5b304e..be8d0033 100644 --- a/apps/cover/tests.py +++ b/apps/cover/tests.py @@ -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'], "http://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'])