mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-22 07:21:01 +00:00
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())
|