Fix test for Python 2.x

This commit is contained in:
Matt Westcott 2017-09-09 00:43:09 +01:00
parent 83e6a551fe
commit 71e81e841f

View file

@ -456,7 +456,7 @@ class TestOembed(TestCase):
result = OEmbedFinder().find_embed("https://vimeo.com/217403396")
self.assertEqual(result['type'], 'video')
request = urlopen.call_args[0][0]
self.assertEqual(request.full_url.split('?')[0], "http://www.vimeo.com/api/oembed.json")
self.assertEqual(request.get_full_url().split('?')[0], "http://www.vimeo.com/api/oembed.json")
class TestEmbedTag(TestCase):