def lock_file_name(self): return get_lock_file('{}.lck'.format(self._name))
def inter_process_locked(name): return process_lock.interprocess_locked(get_lock_file(name))
def test_get_lock_file(self): name = get_lock_file('a.lock') assert_that(name, contains_string('.storops')) assert_that(name, contains_string('a.lock'))