Exemplo n.º 1
0
 def test_driver_setup_and_teardown(self, Popen, call):
     Popen.return_value = 1
     dl = DesktopLibrary()
     dl.driver_setup()
     self.assertTrue(dl.winappdriver.process)
     dl.driver_teardown()
     self.assertFalse(dl.winappdriver.process)
Exemplo n.º 2
0
 def test_driver_setup_failure(self, Popen):
     Popen.side_effect = Exception
     dl = DesktopLibrary()
     dl.driver_setup()
     self.assertFalse(dl.winappdriver.process)