Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Sep 20, 2016
1 parent 751ec59 commit 0f8c1a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpf/tests/test_OPP.py
Expand Up @@ -158,6 +158,10 @@ def _test_coils(self):
self._wait_for_processing()
self.assertFalse(self.serialMock.expected_commands)

self.serialMock.expected_commands[self._crc_message(b'\x20\x14\x02\x02\x0a\x00')] = False
self.serialMock.expected_commands[self._crc_message(b'\x20\x07\x00\x04\x00\x04', False)] = False
self.machine.coils.c_flipper_hold.pulse(10)

# enable coil (not allowed)
with self.assertRaises(AssertionError):
self.machine.coils.c_test.enable()
Expand Down

0 comments on commit 0f8c1a5

Please sign in to comment.