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

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/b/a/babelsubs-HEAD/babelsubs/tests/test_sbv.py   babelsubs(Download)
from unittest2 import TestCase
 
from babelsubs.generators.sbv import SBVGenerator
from babelsubs.parsers.sbv import SBVParser
 
    def test_round_trip(self):
        subs1  = utils.get_subs("simple.sbv")
        parsed1 = subs1.to_internal()
        output = unicode(SBVGenerator(parsed1))
        subs2  = SBVParser(output, 'en')
        output = unicode(SBVGenerator(subs, language='en' ))
 
        parsed = SBVParser(output,'en')
        internal = parsed.to_internal()