def test_get_device(self): app = App('test', devices=self.all_devices) self.assertEqual( app.get_device(self.device2.id).as_json(), self.device2.as_json())
def test_get_device(self): app = App('test', devices=self.all_devices) self.assertEqual(app.get_device(self.device2.id).as_json(), self.device2.as_json())
def test_get_device_invalid(self): app = App('test', devices=self.all_devices) self.assertIsNone(app.get_device('invalid'))