Commit dcf6d434 authored by Romain Courteaud's avatar Romain Courteaud

slapos_json_rpc_api: another test

parent 0d38989c
......@@ -1268,15 +1268,12 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSJsonRpcMixin):
self.person_user_id
)
self.assertEqual('application/json', response.headers.get('content-type'))
self.assertEqual(
response.getBody(),
json.dumps(
{
'compute_node_id': self.compute_node.getReference(),
'date': '2020-05-19T00:00:00+00:00',
'portal_type': 'Compute Node',
'success': 'Done'
}).encode())
self.assertEqual({
'compute_node_id': self.compute_node.getReference(),
'date': '2020-05-19T00:00:00+00:00',
'portal_type': 'Compute Node',
'success': 'Done'
}, byteify(json.loads(response.getBody())))
self.assertEqual(response.getStatus(), 200)
portal_workflow = self.portal.portal_workflow
......@@ -1335,7 +1332,7 @@ class TestSlapOSSlapToolPersonAccess(TestSlapOSJsonRpcMixin):
self.assertEqual(response.getStatus(), 200)
def test_PersonAccess_31_bis_getInstance(self):
self.test_31_getInstanceWithSharedInstance(with_slave=False)
self.test_PersonAccess_31_getInstanceWithSharedInstance(with_slave=False)
def test_PersonAccess_32_softwareInstanceBang(self):
......
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