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

Check types of passed data.

parent e87f0e0b
......@@ -148,6 +148,15 @@ class VifibSlaposRestAPIV1Mixin(TestVifibSlapWebServiceMixin):
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