def test_result(self): '''Test result of output using unix true/false commands''' cmd = BuildCommand('true') with cmd: cmd.run() self.assertTrue(cmd.successful()) cmd = BuildCommand('false') with cmd: cmd.run() self.assertTrue(cmd.failed())