Commit a3751b0f authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup test.

parent 1b39608d
...@@ -589,7 +589,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin): ...@@ -589,7 +589,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
kwargs['comment'] = kwargs.pop('log') kwargs['comment'] = kwargs.pop('log')
self.assertEqual(args, recargs) self.assertEqual(args, recargs)
self.assertEqual(kwargs, reckwargs) self.assertEqual(kwargs, reckwargs)
class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
def test(self): def test(self):
kwargs = {'log': 'This is cool log!'} kwargs = {'log': 'This is cool log!'}
...@@ -631,7 +631,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): ...@@ -631,7 +631,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
kwargs = {'log': 'This is cool log!'} kwargs = {'log': 'This is cool log!'}
self.connection.request(method='POST', self.connection.request(method='POST',
url='/'.join([self.api_path, 'instance', url='/'.join([self.api_path, 'instance',
self.software_instance.getRelativeUrl(), 'bang']), non_existing, 'bang']),
body=json.dumps(kwargs), body=json.dumps(kwargs),
headers={'REMOTE_USER': self.customer_reference}) headers={'REMOTE_USER': self.customer_reference})
self.prepareResponse() self.prepareResponse()
......
21 22
\ 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