def test_json_read(self):
     """Check JSON file is opened without trouble"""
     json_file = resource_filename(__name__, 'json_test.json')
     json_data = get_cross_sections_json(json_file)
     self.assertEqual(json_data['He']['s'], 'CORRECT')
 def test_json_error(self):
     """Check we can't open non-existent JSON files"""
     with self.assertRaises(IOError):
         get_cross_sections_json('non-existent.json')