Beispiel #1
0
 def test_get_all_devices_invalid_app(self):
     app = AppBase('Invalid', self.device2.id, {})
     self.assertListEqual(app.get_all_devices(), [])
 def test_get_all_devices_invalid_app(self):
     app = AppBase('Invalid', self.device2.id)
     self.assertListEqual(app.get_all_devices(), [])
Beispiel #3
0
 def test_get_all_devices(self):
     app = AppBase(self.test_app_name, self.device2.id, {})
     devices = app.get_all_devices()
     self.assertIn(self.device1, devices)
     self.assertIn(self.device2, devices)
 def test_get_all_devices(self):
     app = AppBase(self.test_app_name, self.device2.id)
     devices = app.get_all_devices()
     self.assertIn(self.device1, devices)
     self.assertIn(self.device2, devices)