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

Check types of passed data.

parent e87f0e0b
......@@ -145,9 +145,18 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
('status', 'state')
):
kwargs[k_i] = kwargs.pop(k_j)
self.assertEqual(stored,
self.assertEqual(stored,
[{'recargs': args, 'reckwargs': kwargs,
'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):
def test_not_logged_in(self):
......
47
\ No newline at end of file
48
\ 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