Skip to content

Commit

Permalink
Fix tests after pull #8
Browse files Browse the repository at this point in the history
  • Loading branch information
yetty committed Sep 26, 2013
1 parent d9f3a1d commit e74cc96
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions embed_video/tests/tests_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from embed_video.backends import YoutubeBackend, SoundCloudBackend
from embed_video.templatetags.embed_video_tags import VideoNode, \
_embed_get_size, _embed_get_params
_embed_get_size


class EmbedVideoNodeTestCase(TestCase):
Expand Down Expand Up @@ -119,22 +119,6 @@ def test_repr(self):
node = VideoNode(self.parser, self.token)
self.assertEqual(str(node), '<VideoNode "some_url">')

def test_embed_get_params(self):
url = 'http://youtu.be/jsrRJyHBvzw'
backend = YoutubeBackend(url)
params = _embed_get_params(backend, (3, 8))

self.assertEqual('http://www.youtube.com/embed/jsrRJyHBvzw?wmode=opaque', params['url'])
self.assertEqual(3, params['width'])
self.assertEqual(8, params['height'])

def test_embed_get_params_soundcloud_height(self):
url = 'https://soundcloud.com/glassnote/mumford-sons-i-will-wait'
backend = SoundCloudBackend(url)
params = _embed_get_params(backend, (1, 2))

self.assertEqual(backend.height, params['height'])

def test_videonode_iter(self):
out = ['a', 'b', 'c', 'd']

Expand Down

0 comments on commit e74cc96

Please sign in to comment.