Exemple #1
0
 def test_box_list_to_yaml(self):
     bl = BoxList([{"item": 1, "CamelBad": 2}])
     yaml = YAML()
     assert yaml.load(bl.to_yaml())[0]["item"] == 1
Exemple #2
0
 def test_box_list_to_yaml(self):
     bl = BoxList([{"item": 1, "CamelBad": 2}])
     assert yaml.load(bl.to_yaml(), Loader=yaml.SafeLoader)[0]["item"] == 1
Exemple #3
0
 def test_box_list_to_yaml(self):
     bl = BoxList([{'item': 1, 'CamelBad': 2}])
     assert yaml.load(bl.to_yaml(), Loader=yaml.SafeLoader)[0]['item'] == 1