Exemplo n.º 1
0
 def test_sanitize_fields_not_in_schema(self):
     doc = {"body_html": "test"}
     service = ValidateService()
     schema = {"schema": {"body_html": None}}
     service._sanitize_fields(doc, schema)
     self.assertEqual("test", doc["body_html"])
Exemplo n.º 2
0
 def test_sanitize_fields_not_in_schema(self):
     doc = {'body_html': 'test'}
     service = ValidateService()
     schema = {'schema': {'body_html': None}}
     service._sanitize_fields(doc, schema)
     self.assertEqual('test', doc['body_html'])
Exemplo n.º 3
0
 def test_sanitize_fields_not_in_schema(self):
     doc = {'body_html': 'test'}
     service = ValidateService()
     schema = {'schema': {'body_html': None}}
     service._sanitize_fields(doc, schema)
     self.assertEqual('test', doc['body_html'])