コード例 #1
0
ファイル: test_debug.py プロジェクト: Readon/pgi
    def test_pprint_class(self):
        # populate cache
        Gtk.Window()

        file_ = StringIO()
        pprint(Gtk.Window, file_)
        docstring = "Gtk.Window(type: Gtk.WindowType) -> Gtk.Window"
        self.assertTrue(docstring in file_.getvalue())
コード例 #2
0
ファイル: test_debug.py プロジェクト: tobes/pgi
    def test_pprint_class(self):
        # populate cache
        Gtk.Window()

        file_ = StringIO()
        pprint(Gtk.Window, file_)
        docstring = "Gtk.Window(type: Gtk.WindowType) -> Gtk.Window"
        self.assertTrue(docstring in file_.getvalue())
コード例 #3
0
ファイル: test_debug.py プロジェクト: Readon/pgi
 def test_pprint_function(self):
     file_ = StringIO()
     pprint(Gtk.main, file_)
     self.assertTrue("main() -> None" in file_.getvalue())
コード例 #4
0
ファイル: test_debug.py プロジェクト: tobes/pgi
 def test_pprint_function(self):
     file_ = StringIO()
     pprint(Gtk.main, file_)
     self.assertTrue("main() -> None" in file_.getvalue())