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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/f/t/ftw.inflator-1.3.2/ftw/inflator/tests/test_section_jsonsource.py   ftw.inflator(Download)
                missing_dir))
 
        jsonsource.JSONSource(None, '', {'directory': existing_dir}, [])
 
        with self.assertRaises(IOError) as cm:
            jsonsource.JSONSource(None, '', {'directory': missing_dir}, [])
    def test_reiters_previous(self):
        directory = os.path.dirname(ftw.inflator.tests.__file__)
 
        source = jsonsource.JSONSource(
            None, '', {'directory': directory}, ['foo', 'bar'])
 
        source = jsonsource.JSONSource(
            None, '', {'directory': directory}, ['previous'])
 
        self.assertEqual(list(source), ['previous', 'foo', 1, 'b\xc3\xa4r'])