예제 #1
0
    def test_output_neither(self):
        from xin import output_result

        output_result(None, None, stdout=self.output)

        self.assertEquals(self.output.getvalue(), '')
예제 #2
0
    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)
예제 #3
0
    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)