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())
def tearDown(self): for app in App.getApps(): app.remove()