Commit 91a9efcd authored by Łukasz Nowak's avatar Łukasz Nowak

Demarshall in order to simplify comparision.

parent 9e89caca
...@@ -5,6 +5,7 @@ import urlparse ...@@ -5,6 +5,7 @@ import urlparse
import json import json
import tempfile import tempfile
import os import os
import xml_marshaller
class Person_requestSoftwareInstanceSimulator: class Person_requestSoftwareInstanceSimulator:
def __init__(self, outfile): def __init__(self, outfile):
...@@ -131,6 +132,8 @@ class TestVifibSlaposRestAPIV1(ERP5TypeTestCase): ...@@ -131,6 +132,8 @@ class TestVifibSlaposRestAPIV1(ERP5TypeTestCase):
('slave', 'shared'), ('slave', 'shared'),
('status', 'state') ('status', 'state')
): ):
if k_j in ('sla', 'parameter'):
reckwargs[k_i] = xml_marshaller.xml_marshaller.loads(reckwargs.pop(k_i))
kwargs[k_i] = kwargs.pop(k_j) kwargs[k_i] = kwargs.pop(k_j)
self.assertEqual(args, recargs) self.assertEqual(args, recargs)
self.assertEqual(kwargs, reckwargs) self.assertEqual(kwargs, reckwargs)
......
9 10
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment