Commit 3a2994aa authored by Łukasz Nowak's avatar Łukasz Nowak

Check that PUT encodes correctly.

parent 0abbd362
...@@ -959,6 +959,10 @@ class TestInstancePUT(VifibSlaposRestAPIV1InstanceMixin): ...@@ -959,6 +959,10 @@ class TestInstancePUT(VifibSlaposRestAPIV1InstanceMixin):
def assertInstancePUTSimulator(self, l): def assertInstancePUTSimulator(self, l):
stored = eval(open(self.instance_put_simulator).read()) stored = eval(open(self.instance_put_simulator).read())
self.assertEqual(stored, l) self.assertEqual(stored, l)
self.assertEqual(
set([type(q) for q in l[0]['recargs']]),
set([str])
)
def assertInstancePUTSimulatorEmpty(self): def assertInstancePUTSimulatorEmpty(self):
self.assertEqual('', open(self.instance_put_simulator).read()) self.assertEqual('', open(self.instance_put_simulator).read())
......
48 49
\ 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