コード例 #1
0
ファイル: test_device.py プロジェクト: bjornarg/pyudev
 def test_from_environment(self, context):
     # there is no device in a standard environment
     with pytest.raises(DeviceNotFoundInEnvironmentError):
         Device.from_environment(context)
コード例 #2
0
ファイル: test_device.py プロジェクト: bjornarg/pyudev
 def test_from_environment(self, context):
     # there is no device in a standard environment
     with pytest.raises(DeviceNotFoundInEnvironmentError):
         Device.from_environment(context)