Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/d/j/django-embed-video-0.9/embed_video/tests/tests_backend.py   django-embed-video(Download)
from unittest import TestCase
from mock import patch
import requests
 
from ..backends import detect_backend, YoutubeBackend, VimeoBackend, \
    def test_vimeo_get_info_exception(self):
        with self.assertRaises(VideoDoesntExistException):
            backend = VimeoBackend('http://vimeo.com/123')
            backend.get_info()
 
    def test_get_thumbnail_url(self):
        backend = VimeoBackend('http://vimeo.com/72304002')
    def test_timeout_in_get_info(self):
        backend = VimeoBackend('http://vimeo.com/72304002')
        self.assertRaises(requests.Timeout, backend.get_info)
 
 

src/d/j/django-embed-video-HEAD/embed_video/tests/tests_backend.py   django-embed-video(Download)
from unittest import TestCase
from mock import patch
import requests
 
from ..backends import detect_backend, YoutubeBackend, VimeoBackend, \
    def test_vimeo_get_info_exception(self):
        with self.assertRaises(VideoDoesntExistException):
            backend = VimeoBackend('http://vimeo.com/123')
            backend.get_info()
 
    def test_get_thumbnail_url(self):
        backend = VimeoBackend('http://vimeo.com/72304002')
    def test_timeout_in_get_info(self):
        backend = VimeoBackend('http://vimeo.com/72304002')
        self.assertRaises(requests.Timeout, backend.get_info)