This commit is contained in:
vic 2012-09-05 20:59:42 +04:00
parent 888ddf45b4
commit b1ea14671e

View File

@ -20,7 +20,8 @@ class TestHandlers(BaseHandlers):
# todo: decide None output format # todo: decide None output format
# self.assertEquals(node.name, response['name']) # self.assertEquals(node.name, response['name'])
self.assertEquals(node.mac, response['mac']) self.assertEquals(node.mac, response['mac'])
self.assertEquals(node.redeployment_needed, response['redeployment_needed']) self.assertEquals(
node.redeployment_needed, response['redeployment_needed'])
self.assertEquals(node.status, response['status']) self.assertEquals(node.status, response['status'])
self.assertEquals(node.roles, response['roles']) self.assertEquals(node.roles, response['roles'])
self.assertEquals(node.new_roles, response['new_roles']) self.assertEquals(node.new_roles, response['new_roles'])
@ -29,7 +30,6 @@ class TestHandlers(BaseHandlers):
self.assertEquals(node.info['ram'], response['info']['ram']) self.assertEquals(node.info['ram'], response['info']['ram'])
self.assertEquals(node.info['cpu'], response['info']['cpu']) self.assertEquals(node.info['cpu'], response['info']['cpu'])
def test_node_creation_with_id(self): def test_node_creation_with_id(self):
node_id = '080000000003' node_id = '080000000003'
resp = self.app.post( resp = self.app.post(