def test_syntax_error(self): with self.assertRaises(Exception) as e: file_to_context(self.fixtures.path('syntax_error.py'))
def load(self, path): data = file_to_context(path) merge_dictionary(self.output, data, merge_list_keys=['run_list'])
def test_simple(self): data = file_to_context(self.fixtures.path('basic.py')) self.assertEqual(1, data['foo']) self.assertEqual('some string', data['blah']) self.assertEqual([1,2,3], data['bar'])