Esempio n. 1
0
    def test_yaml_loads(self):
        yamldata = """
{portal_type: ArticleReference
attributes:
    title: Updated title
        """
        with self.assertRaises(ContentTypeLoadError):
            YamlContentType.loads(yamldata)
Esempio n. 2
0
 def test_yaml_dumps(self):
     class Tst(object):
         pass
     with self.assertRaises(ContentTypeDumpError):
         YamlContentType.dumps(Tst())