示例#1
0
 def test_delete_lock(self):
     l1 = Lock('test')
     self.assertTrue(isfile('/tmp/mycroft/test.pid'))
     l1.delete()
     self.assertFalse(isfile('/tmp/mycroft/test.pid'))
示例#2
0
 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')))
 def test_delete_lock(self):
     l1 = Lock('test')
     self.assertTrue(isfile('/tmp/mycroft/test.pid'))
     l1.delete()
     self.assertFalse(isfile('/tmp/mycroft/test.pid'))