Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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)
Ejemplo n.º 4
0
 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)