def test_restart_and_return_with_message(self): self.mock(subprocess, 'check_call', lambda _: None) self.assertIs(True, os_utilities.restart_and_return(message='Boo'))
def test_restart_and_return(self): self.mock(subprocess, 'check_call', lambda _: None) self.assertIs(True, os_utilities.restart_and_return())