Exemple #1
0
 def test_syntax_error(self):
     with self.assertRaises(Exception) as e:
         file_to_context(self.fixtures.path('syntax_error.py'))
Exemple #2
0
 def load(self, path):
     data = file_to_context(path)
     merge_dictionary(self.output, data, merge_list_keys=['run_list'])
Exemple #3
0
 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'])