Skip to content

Commit

Permalink
small fixes in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
efremovd committed Jun 27, 2017
1 parent 261ff81 commit a3821b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pywinauto/unittests/test_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,19 @@ def test_wait_process_exit(self):
self.assertFalse(app.is_process_running())

def test_should_return_not_running_if_not_started(self):
"""Tests that is_process_running and wait_for_process_exit can be
called on not started/disconnected instance
"""
Tests that is_process_running and wait_for_process_exit can be
called on not started/disconnected instance
"""
app = Application()
app.wait_for_process_exit(timeout=10, retry_interval=1)
self.assertFalse(app.is_process_running())

@mock.patch.object(win32api, 'OpenProcess')
def test_should_return_not_running_if_failed_to_open_process(self, func_open_process):
"""Tests that is_process_running and wait_for_process_exit works even if
OpenProcess returns NULL handle without exception
"""
Tests that is_process_running and wait_for_process_exit works even if
OpenProcess returns NULL handle without exception
"""
func_open_process.return_value = pywintypes.HANDLE(0)
app = Application()
Expand Down

0 comments on commit a3821b4

Please sign in to comment.