Jon Herron 0892db6fa7 Squashed 'SpiffWorkflow/' content from commit 63db3e4
git-subtree-dir: SpiffWorkflow
git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
2022-10-12 10:19:53 -04:00

31 lines
849 B
Python

# -*- 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())