def test_get_format_with_bad_xml_input(self): with open(os.path.join(test_resources, 'bad.xml'), 'r') as f: _ = get_formats(f) assert _ == (False, False, False)
def test_get_format_with_good_yaml_input(self): with open(os.path.join(test_resources, 'good.yaml'), 'r') as f: _ = get_formats(f) assert _ == (False, False, True)