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_json.py   babelsubs(Download)
from unittest2 import TestCase
 
from babelsubs.generators.json_generator import JSONGenerator
from babelsubs import SubtitleParserError
from babelsubs.parsers.json_parser import JSONParser
    def test_invalid(self):
        with self.assertRaises(SubtitleParserError):
            JSONParser ("this\n\nisnot a valid subs format","en")