def test_delete_lock(self): l1 = Lock('test') self.assertTrue(isfile('/tmp/mycroft/test.pid')) l1.delete() self.assertFalse(isfile('/tmp/mycroft/test.pid'))
def test_delete_lock(self): l1 = Lock('test') self.assertTrue(isfile(get_temp_path('mycroft', 'test.pid'))) l1.delete() self.assertFalse(isfile(get_temp_path('mycroft', 'test.pid')))