Skip to content

Commit

Permalink
spellcheck messages in tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sonelu committed May 11, 2020
1 parent d49e593 commit 38f2e11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def test_bus_repr(self, mock_robot):
assert str(register.address) in str_repr
assert str(register.int_value) in str_repr

def test_bus_aquire(self, mock_robot, caplog):
def test_bus_acquire(self, mock_robot, caplog):
dev = mock_robot.devices['d01']
bus = mock_robot.buses['busA']
# stop syncs to avoid interference (additional messages)
Expand All @@ -242,12 +242,12 @@ def test_bus_aquire(self, mock_robot, caplog):
caplog.clear()
bus.read(dev, dev.current_pos)
assert len(caplog.records) == 1
assert 'failed to aquire bus busA' in caplog.text
assert 'failed to acquire bus busA' in caplog.text
# write
caplog.clear()
bus.write(dev, dev.current_pos, 10)
assert len(caplog.records) == 1
assert 'failed to aquire bus busA' in caplog.text
assert 'failed to acquire bus busA' in caplog.text
# release bus
bus.stop_using()
mock_robot.stop()
Expand Down

0 comments on commit 38f2e11

Please sign in to comment.