def test_deleteState(self): self.key = "unknown" expected = 200 actual = RobotAPI.deleteState(self.apiKey, self.token, self.robotId[0], self.key, self.url) self.assertEqual(expected, actual)
def test_deleteTag(self): self.tagName = "string" expected = 201 actual = RobotAPI.deleteTag(self.apiKey, self.token, self.robotId[0], self.tagName, self.url) self.assertEqual(expected, actual)
def test_getPartialState(self): self.key = "string" expected = 200 actual = RobotAPI.getPartialState(self.apiKey, self.token, self.robotId[0], self.key, self.url) self.assertEqual(expected, actual)
def test_attachSubscriberToRobot(self): self.body = {"imsi": "string"} expected = 200 actual = RobotAPI.attachSubscriberToRobot(self.apiKey, self.token, self.robotId[0], self.body, self.url) self.assertEqual(expected, actual)
def test_putTags(self): self.tagName = "string" self.body = { "additionalProp1": "string", "additionalProp2": "string", "additionalProp3": "string" } expected = 201 actual = RobotAPI.putTags(self.apiKey, self.token, self.robotId[0], self.tagName, self.body, self.url) self.assertEqual(expected, actual)
def test_putState(self): self.body = { "state": { "additionalProp1": {}, "additionalProp2": {}, "additionalProp3": {} } } expected = 200 actual = RobotAPI.putState(self.apiKey, self.token, self.robotId[0], self.body, self.url) self.assertEqual(expected, actual)
def test_getState(self): expected = 200 actual = RobotAPI.getState(self.apiKey, self.token, self.robotId[0], self.url) self.assertEqual(expected, actual)
def test_deleteRobot(self): expected = 200 actual = RobotAPI.deleteRobot(self.apiKey, self.token, self.robotId[0], self.url) self.assertEqual(expected, actual)
def test_removeSubscriberFromRobot(self): expected = 200 actual = RobotAPI.removeSubscriberFromRobot(self.apiKey, self.token, self.robotId[0], self.url) self.assertEqual(expected, actual)
def test_listRobot(self): expected = 200 actual = RobotAPI.listRobot(self.apiKey, self.token, self.url) self.assertEqual(expected, actual)
def test_orderProtectiveStop(self): expected = 202 actual = RobotAPI.orderProtectiveStop(self.apiKey, self.token, self.robotId[0], self.url) self.assertEqual(expected, actual)
def test_orderSimultaneousStop(self): expected = 202 actual = RobotAPI.orderSimultaneousStop(self.apiKey, self.token, self.url) self.assertEqual(expected, actual)