Skip to content

Commit

Permalink
test border case in auditor
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Sep 4, 2016
1 parent 10b284b commit 19a7f05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpf/tests/test_Auditor.py
Expand Up @@ -70,6 +70,10 @@ def test_auditor_switches(self):

self.assertEqual(2, auditor.current_audits['switches']['s_test'])

# should not crash on unknown switch
self.machine.switch_controller.process_switch_by_num(123123123123, 1, self.machine.default_platform)
self.advance_time_and_run()

auditor.disable()

self.machine.switch_controller.process_switch("s_test", 1)
Expand Down

0 comments on commit 19a7f05

Please sign in to comment.