def test_box_list_to_yaml(self): bl = BoxList([{"item": 1, "CamelBad": 2}]) yaml = YAML() assert yaml.load(bl.to_yaml())[0]["item"] == 1
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
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