Commit 48da1486 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow method renaming.

parent 3f652128
...@@ -799,8 +799,8 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin): ...@@ -799,8 +799,8 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
def afterSetUp(self): def afterSetUp(self):
super(VifibSlaposRestAPIV1BangMixin, self).afterSetUp() super(VifibSlaposRestAPIV1BangMixin, self).afterSetUp()
self.instance_bang_simulator = tempfile.mkstemp()[1] self.instance_bang_simulator = tempfile.mkstemp()[1]
self.software_instance.reportComputerPartitionBang = Simulator( self.software_instance.bang = Simulator(
self.instance_bang_simulator, 'reportComputerPartitionBang') self.instance_bang_simulator, 'bang')
transaction.commit() transaction.commit()
def beforeTearDown(self): def beforeTearDown(self):
...@@ -817,7 +817,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin): ...@@ -817,7 +817,7 @@ class VifibSlaposRestAPIV1BangMixin(VifibSlaposRestAPIV1InstanceMixin):
kwargs['comment'] = kwargs.pop('log') kwargs['comment'] = kwargs.pop('log')
self.assertEqual(stored, self.assertEqual(stored,
[{'recargs': args, 'reckwargs': kwargs, [{'recargs': args, 'reckwargs': kwargs,
'recmethod': 'reportComputerPartitionBang'}]) 'recmethod': 'bang'}])
class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
def test(self): def test(self):
...@@ -833,7 +833,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin): ...@@ -833,7 +833,7 @@ class TestInstancePOSTbang(VifibSlaposRestAPIV1BangMixin):
self.assertInstanceBangSimulator((), kwargs) self.assertInstanceBangSimulator((), kwargs)
def test_server_side_raise(self): def test_server_side_raise(self):
self.software_instance.reportComputerPartitionBang = RaisingSimulator( self.software_instance.bang = RaisingSimulator(
AttributeError) AttributeError)
transaction.commit() transaction.commit()
kwargs = {'log': 'This is cool log!'} kwargs = {'log': 'This is cool log!'}
......
63 64
\ 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