Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)