예제 #1
0
파일: test_seria.py 프로젝트: theherk/seria
 def test_validate_yaml_with_good_json_input(self):
     """
     YAML is technically a superset of json, ie valid json == valid yaml
     """
     with open(os.path.join(test_resources, 'good.json'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == True
예제 #2
0
파일: test_seria.py 프로젝트: jmdcal/seria
 def test_validate_yaml_with_good_json_input(self):
     """
     YAML is technically a superset of json, ie valid json == valid yaml
     """
     with open(os.path.join(test_resources, 'good.json'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == True
예제 #3
0
파일: test_seria.py 프로젝트: theherk/seria
 def test_validate_yaml_with_bad_json_input(self):
     with open(os.path.join(test_resources, 'bad.json'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == False
예제 #4
0
파일: test_seria.py 프로젝트: theherk/seria
 def test_validate_yaml_bad(self):
     with open(os.path.join(test_resources, 'bad.yaml'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == False
예제 #5
0
파일: test_seria.py 프로젝트: jmdcal/seria
 def test_validate_yaml_with_bad_json_input(self):
     with open(os.path.join(test_resources, 'bad.json'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == False
예제 #6
0
파일: test_seria.py 프로젝트: jmdcal/seria
 def test_validate_yaml_bad(self):
     with open(os.path.join(test_resources, 'bad.yaml'), 'r') as f:
         _ = YAML.is_it(f)
         assert _ == False