コード例 #1
0
ファイル: test_factories.py プロジェクト: tigrawap/plumbum
    def testDirectCallArgs(self):
        colors.blue("This is")

        if not hasattr(sys.stdout, "getvalue"):
            self.fail("Need to run in buffered mode!")

        output = sys.stdout.getvalue().strip()
        self.assertEquals(output, str(colors.blue | "This is"))
コード例 #2
0
ファイル: test_factories.py プロジェクト: astraw38/plumbum
    def testDirectCallArgs(self):
        colors.blue("This is")

        if not hasattr(sys.stdout, "getvalue"):
            self.fail("Need to run in buffered mode!")

        output = sys.stdout.getvalue().strip()
        self.assertEquals(output,str(colors.blue | "This is"))
コード例 #3
0
ファイル: test_factories.py プロジェクト: mbarkhau/plumbum
 def testDirectCall(self, capsys):
     colors.blue()
     assert capsys.readouterr()[0] == str(colors.blue)
コード例 #4
0
 def testDirectCall(self, capsys):
     colors.blue()
     assert capsys.readouterr()[0] == str(colors.blue)