mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-03-16 21:30:23 +00:00
fixed a test thats failing due to inappropriate inputs.
- 13456 is an invalid video ID, its too short.
This commit is contained in:
parent
2ddc2a0e04
commit
085b65024a
1 changed files with 2 additions and 2 deletions
|
|
@ -120,11 +120,11 @@ class EmbedVideoNodeTestCase(TestCase):
|
|||
self.assertEqual(str(node), '<VideoNode "some_url">')
|
||||
|
||||
def test_embed_get_params(self):
|
||||
url = 'http://youtu.be/13456'
|
||||
url = 'http://youtu.be/jsrRJyHBvzw'
|
||||
backend = YoutubeBackend(url)
|
||||
params = _embed_get_params(backend, (3, 8))
|
||||
|
||||
self.assertEqual('http://www.youtube.com/embed/13456?wmode=opaque', params['url'])
|
||||
self.assertEqual('http://www.youtube.com/embed/jsrRJyHBvzw?wmode=opaque', params['url'])
|
||||
self.assertEqual(3, params['width'])
|
||||
self.assertEqual(8, params['height'])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue