Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 def tearDown(self):
     dweepy.unlock(self.my_thing_id, test_key)
     try:
         dweepy.remove_lock(test_lock, test_key)
     except dweepy.DweepyError:
         pass
Exemplo n.º 3
0
 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)