Пример #1
0
    def test_apps(self):
        self.assertEqual([], App.getApps())

        app = App()
        self.assertEqual([app], app.getApps())

        app2 = App()
        self.assertEqual([app, app2], app.getApps())
        self.assertEqual([app, app2], App.getApps())

        app.remove()
        self.assertEqual([app2], App.getApps())

        app2.remove()
        self.assertEqual([], App.getApps())
Пример #2
0
 def tearDown(self):
     for app in App.getApps():
         app.remove()