diff options
Diffstat (limited to 'tests/test_clone.py')
| -rw-r--r-- | tests/test_clone.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/test_clone.py b/tests/test_clone.py index cb41bfb..cd29f17 100644 --- a/tests/test_clone.py +++ b/tests/test_clone.py @@ -16,9 +16,19 @@ class SerialException(Exception): class SerialNone(serialtrace.SerialTrace): + def __init__(self, *a, **k): + super().__init__(*a, **k) + self.port = '/dev/ttyUSB0' + def flush(self): pass + def reset_input_buffer(self): + pass + + def reset_output_buffer(self): + pass + def inWaiting(self): return len(self.read(256)) @@ -108,12 +118,12 @@ class TestCaseClone(base.DriverTest): self.radio._mmap = orig_mmap self.radio.status_fn = lambda s: True - msg = ('Clone should have failed and raised an exception ' + msg = ('Clone in should have failed and raised an exception ' 'that inherits from RadioError') with self.assertRaises(errors.RadioError, msg=msg): self.radio.sync_in() - msg = ('Clone should have failed and raised an exception ' + msg = ('Clone out should have failed and raised an exception ' 'that inherits from RadioError') with self.assertRaises(errors.RadioError, msg=msg): self.radio.sync_out() |
