Commit 17b2848f authored by Łukasz Nowak's avatar Łukasz Nowak

Check types of passed data.

parent e87f0e0b
...@@ -148,6 +148,15 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin): ...@@ -148,6 +148,15 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
self.assertEqual(stored, self.assertEqual(stored,
[{'recargs': args, 'reckwargs': kwargs, [{'recargs': args, 'reckwargs': kwargs,
'recmethod': 'requestSoftwareInstance'}]) 'recmethod': 'requestSoftwareInstance'}])
reckwargs = stored[0]['reckwargs']
self.assertEqual(
set([
type(reckwargs['software_title']), type(reckwargs['software_release']),
type(reckwargs['software_type']), type(reckwargs['state']),
type(reckwargs['instance_xml']), type(reckwargs['sla_xml'])
]),
set([str])
)
class TestInstanceRequest(VifibSlaposRestAPIV1Mixin): class TestInstanceRequest(VifibSlaposRestAPIV1Mixin):
def test_not_logged_in(self): def test_not_logged_in(self):
......
47 48
\ 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