31 lines
849 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
import sys
import unittest
import os
dirname = os.path.dirname(__file__)
data_dir = os.path.join(dirname, '..', 'data')
sys.path.insert(0, os.path.join(dirname, '..', '..', '..'))
from SpiffWorkflow.serializer.prettyxml import XmlSerializer
from .baseTest import SerializerTest
class XmlSerializerTest(SerializerTest):
def setUp(self):
super(XmlSerializerTest, self).setUp()
self.serializer = XmlSerializer()
self.return_type = str
def testWorkflowSpec(self):
# Nothing to test here: The deserialization is already used in setUp()
# to load all specs, and serialization is not supported.
pass
def suite():
return unittest.TestLoader().loadTestsFromTestCase(XmlSerializerTest)
if __name__ == '__main__':
unittest.TextTestRunner(verbosity=2).run(suite())