mirror of
https://github.com/Hopiu/django-embed-video.git
synced 2026-04-19 04:31:00 +00:00
Add test for SoundCloudBackend.get_url
This commit is contained in:
parent
49839aac1c
commit
f09df0e752
1 changed files with 7 additions and 1 deletions
|
|
@ -117,7 +117,10 @@ class SoundCloudBackendTestCase(BackendTestMixin, TestCase):
|
|||
return {
|
||||
'width': 123,
|
||||
'height': 321,
|
||||
'thumbnail_url': 'xyz'
|
||||
'thumbnail_url': 'xyz',
|
||||
'html': u'\u003Ciframe width=\"100%\" height=\"400\" '
|
||||
u'scrolling=\"no\" frameborder=\"no\" '
|
||||
u'src=\"{0}\"\u003E\u003C/iframe\u003E'.format(self.url)
|
||||
}
|
||||
|
||||
self.foo = FooBackend('abcd')
|
||||
|
|
@ -131,6 +134,9 @@ class SoundCloudBackendTestCase(BackendTestMixin, TestCase):
|
|||
def test_get_thumbnail_url(self):
|
||||
self.assertEqual(self.foo.get_thumbnail_url(), 'xyz')
|
||||
|
||||
def test_get_url(self):
|
||||
self.assertEqual(self.foo.get_url(), self.foo.url)
|
||||
|
||||
def test_get_embed_code(self):
|
||||
self.assertEqual(self.foo.get_embed_code(100, 200),
|
||||
'<iframe width="100" height="321" src="foobar" '
|
||||
|
|
|
|||
Loading…
Reference in a new issue