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])
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'), [])
def test_get_all_devices_of_type_app_dne(self): self.assertListEqual( get_all_devices_of_type_from_app('invalid', 'type1'), [])
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])
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'), [])
def test_get_all_devices_of_type_app_dne(self): self.assertListEqual(get_all_devices_of_type_from_app('invalid', 'type1'), [])