added GlobalObject intermediate module serialization test

This commit is contained in:
jay.hennen 2017-04-18 16:46:10 -07:00
parent 396e06a49c
commit 7ada0d5a38
1 changed files with 6 additions and 0 deletions

View File

@ -2095,6 +2095,12 @@ class TestGlobalObject(unittest.TestCase):
node = DummySchemaNode(None)
result = typ.serialize(node, colander.tests)
self.assertEqual(result, 'colander.tests')
from colander import tests
typ = self._makeOne()
node = DummySchemaNode(None)
result = typ.serialize(node, tests)
self.assertEqual(result, 'colander.tests')
def test_serialize_class(self):
cls = self.__class__