def test_from_environment(self, context): # there is no device in a standard environment with pytest.raises(DeviceNotFoundInEnvironmentError): Device.from_environment(context)