コード例 #1
0
 def test_RpcTimeoutError_repr(self):
     dev = Device('test')
     obj = RpcTimeoutError(dev=dev, cmd='test', timeout=50)
     err = 'RpcTimeoutError(host: test, cmd: test, timeout: 50)'
     self.assertEqual(obj.__repr__(), err)
コード例 #2
0
 def test_RpcTimeoutError_repr(self):
     dev = Device("test")
     obj = RpcTimeoutError(dev=dev, cmd="test", timeout=50)
     err = "RpcTimeoutError(host: test, cmd: test, timeout: 50)"
     self.assertEqual(obj.__repr__(), err)
コード例 #3
0
 def test_RpcTimeoutError_repr(self):
     dev = Device('test')
     obj = RpcTimeoutError(dev=dev, cmd='test', timeout=50)
     err = 'RpcTimeoutError(host: test, cmd: test, timeout: 50)'
     self.assertEqual(obj.__repr__(), err)
コード例 #4
0
 def test_RpcTimeoutError_repr(self):
     dev = Device("test")
     obj = RpcTimeoutError(dev=dev, cmd="test", timeout=50)
     err = "RpcTimeoutError(host: test, cmd: test, timeout: 50)"
     self.assertEqual(obj.__repr__(), err)