Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(12)  |  Derive(0)  |  Import(1)

src/p/o/porteira-0.4/porteira/test.py   porteira(Download)
# coding: utf-8
 
import unittest
import test_asserts
from porteira import Schema
    def test_get_validation_errors(self):
        sch = Schema(self.xsd_string)
        errors = sch.get_validation_errors(self.xml_string)
        self.assertEqual(errors, list())
 
    def test_get_validation_errors_invalid_XML(self):
        sch = Schema(self.xsd_string)
    def test_deserialize(self):
        sch = Schema(self.xsd_string)
        des = sch.deserialize(self.xml_string)
        self.assertIsInstance(des, dict)
        self.assertIn('wizard', des)
 
    def test_serialize(self):
        sch = Schema()