Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(2) | Call(1) | Derive(0) | Import(1)
src/b/a/babelsubs-HEAD/babelsubs/tests/test_webvtt.py babelsubs(Download)
from unittest2 import TestCase from lxml import etree from babelsubs.storage import get_contents, SubtitleSet, TTS_NAMESPACE_URI from babelsubs.generators.webvtt import WEBVTTGenerator
def test_round_trip(self): subs1 = utils.get_subs("basic.vtt") parsed1 = subs1.to_internal() srt_ouput = unicode(WEBVTTGenerator(parsed1)) subs2 = WEBVTTParser(srt_ouput, 'en')