def tearDown(self): self.process.terminate() dweepy.unlock(self.my_thing_id, test_key) try: dweepy.remove_lock(test_lock, test_key) except dweepy.DweepyError: pass
def tearDown(self): dweepy.unlock(self.my_thing_id, test_key) try: dweepy.remove_lock(test_lock, test_key) except dweepy.DweepyError: pass
def test_lock_unlock(self): """Test that locking/unlocking doesn't raise an error. """ my_thing_id = str(uuid.uuid4()) dweepy.lock(my_thing_id, test_lock, test_key) dweepy.unlock(my_thing_id, test_key)