Source

cmsplugin-vimeo / cmsplugin_vimeo / tests.py

Full commit
"""
Tests for the VimeoPlugin
"""

from django.test import TestCase
from models import Vimeo

class SimpleTest(TestCase):
    def setUp(self):
        self.video = Vimeo(video_id=17808185)
        
    def test_src(self):
        """
        Tests the src attribute is correct with default settings.
        """
        self.failUnlessEqual(self.video.src, ("http://player.vimeo.com/video/17808185"
                                                "?byline=1"
                                                "&portrait=1"
                                                "&title=1"
                                                "&autoplay=0"
                                                "&loop=0"))