class TestGlueApplication(unittest.TestCase):
    def setUp(self):
        self.qapp = QApplication([""])
        self.app = GlueApplication()

    def tearDown(self):
        self.app.close()
        del self.app
        del self.qapp

    def test_new_tabs(self):
        t0 = tab_count(self.app)
        self.app._new_tab()
        self.assertEquals(t0 + 1, tab_count(self.app))