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