Esempio n. 1
0
 def test_yaml_complex(self):
     value = schema.output_yaml(COMPLEX)
     assert value == YML_COMPLEX, '\n%s' % value
Esempio n. 2
0
 def test_yaml_dictionary_of_dictionaries(self):
     value = schema.output_yaml(DICTIONARY_OF_DICTIONARIES)
     assert value == YML_DICTIONARY_OF_DICTIONARIES, '\n%s' % value
Esempio n. 3
0
 def test_yaml_list_of_lists(self):
     value = schema.output_yaml(LIST_OF_LISTS)
     assert value == YML_LIST_OF_LISTS, '\n[%s]' % value
Esempio n. 4
0
    def test_yaml_output(self):
        value = schema.output_yaml('value')
        assert value == 'value'

        value = schema.output_yaml({'name': 'value'})
        assert value == 'name: value', '\n[%s]' % value