def test_output_neither(self): from xin import output_result output_result(None, None, stdout=self.output) self.assertEquals(self.output.getvalue(), '')
def test_output_both(self): from xin import output_result output_result(self.stdout_expected, self.stderr_expected, stdout=self.output) self.assertEquals(self.output.getvalue(), self.stdboth)
def test_output_only_stderr(self): from xin import output_result output_result(None, self.stderr_expected, stdout=self.output) self.assertEquals(self.output.getvalue(), self.stderr_expected)