Beispiel #1
0
 def test_get_all_devices_of_type(self):
     devices = [self.device1, self.device2, self.device3, self.device4]
     self.add_test_app(devices=devices)
     self.assertListEqual(
         get_all_devices_of_type_from_app(self.app_name, 'type1'),
         [self.device1, self.device2])
Beispiel #2
0
 def test_get_all_devices_of_type_no_devices(self):
     self.add_test_app()
     self.assertListEqual(
         get_all_devices_of_type_from_app(self.app_name, 'type1'), [])
Beispiel #3
0
 def test_get_all_devices_of_type_app_dne(self):
     self.assertListEqual(
         get_all_devices_of_type_from_app('invalid', 'type1'), [])
Beispiel #4
0
 def test_get_all_devices_of_type(self):
     devices = [self.device1, self.device2, self.device3, self.device4]
     self.add_test_app(devices=devices)
     self.assertListEqual(get_all_devices_of_type_from_app(self.app_name, 'type1'), [self.device1, self.device2])
Beispiel #5
0
 def test_get_all_devices_of_type_no_devices(self):
     self.add_test_app()
     self.assertListEqual(get_all_devices_of_type_from_app(self.app_name, 'type1'), [])
Beispiel #6
0
 def test_get_all_devices_of_type_app_dne(self):
     self.assertListEqual(get_all_devices_of_type_from_app('invalid', 'type1'), [])