mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-21 23:09:38 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
31 lines
849 B
Python
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())
|