Ejemplo n.º 1
0
    def test_run_application(self):
        """ Tests running an application """
        import time

        self.tetris.execute()

        time.sleep(5)

        app = get_app_running()

        self.assertNotEqual(app, None)
        self.assertEqual(app.poll(), None)
Ejemplo n.º 2
0
    def test_run_application(self):
        """ Tests running an application """
        import time
        
        self.tetris.execute()
        
        
        time.sleep(5)
        
        app = get_app_running()

        self.assertNotEqual(app, None)
        self.assertEqual(app.poll(), None)
Ejemplo n.º 3
0
    def test_terminate_application(self):
        """ Kills the running application (if none runnig, it starts it) """
        import time
        if not is_app_running():
            self.tetris.execute()
            time.sleep(5)

        app = get_app_running()

        # guarantee the application is running
        self.assertNotEqual(app, None)

        kill_app_running()

        time.sleep(5)

        self.assertNotEqual(app.poll(), None)
Ejemplo n.º 4
0
    def test_terminate_application(self):
        """ Kills the running application (if none runnig, it starts it) """
        import time
        if not is_app_running():
            self.tetris.execute()
            time.sleep(5)

        app = get_app_running()
        
        # guarantee the application is running
        self.assertNotEqual(app, None)

        kill_app_running()
         
        time.sleep(5)
        
        self.assertNotEqual(app.poll(), None)