Beispiel #1
0
 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())
Beispiel #2
0
 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())
Beispiel #3
0
 def test_get_device_invalid(self):
     app = App('test', devices=self.all_devices)
     self.assertIsNone(app.get_device('invalid'))
Beispiel #4
0
 def test_get_device_invalid(self):
     app = App('test', devices=self.all_devices)
     self.assertIsNone(app.get_device('invalid'))