'Test whether a new lock file is created when an invalid pid is written inside the current lock file'

def test_invalid_pid_in_lock_file(self):

    with open(os.path.join(self.state_dir, LOCK_FILE_NAME), 'wb') as lock_file:
        lock_file.write('Hello    world')
    process_checker = ProcessChecker()
    self.assertGreater(int(process_checker.get_pid_from_lock_file()), 0)
