Oops and text in projector test

This commit is contained in:
Ken Roberts 2016-04-24 04:22:04 -07:00
parent 28e14012a8
commit 884f060dea
2 changed files with 4 additions and 4 deletions

View File

@ -404,5 +404,5 @@ def check_binary_exists(program_path):
except Exception:
trace_error_handler(log)
runlog = ''
log.debug('check_output returned: {text}'.format(text=runlog)
log.debug('check_output returned: {text}'.format(text=runlog))
return runlog

View File

@ -156,7 +156,7 @@ class TestPJLink(TestCase):
@patch.object(pjlink_test, 'projectorReceivedData')
def projector_process_power_on_test(self, mock_projectorReceivedData):
"""
Test setting power on
Test setting power to ON
"""
# GIVEN: Test object and preset
pjlink = pjlink_test
@ -171,7 +171,7 @@ class TestPJLink(TestCase):
@patch.object(pjlink_test, 'projectorReceivedData')
def projector_process_power_off_test(self, mock_projectorReceivedData):
"""
Test setting power off
Test setting power to STANDBY
"""
# GIVEN: Test object and preset
pjlink = pjlink_test
@ -180,5 +180,5 @@ class TestPJLink(TestCase):
# WHEN: Call process_command with turn power on command
pjlink.process_command('POWR', PJLINK_POWR_STATUS[S_STANDBY])
# THEN: Power should be set to ON
# THEN: Power should be set to STANDBY
self.assertEquals(pjlink.power, S_STANDBY, 'Power should have been set to STANDBY')