def setUp(self):
     '''Clean the orderbook before every test.'''
     ob.message_id = 0
     ob.offers = []
     ob.trades = []
     self.public_id = get_public_bytestring()
Example #2
0
 def setUp(self):
     """Clean the orderbook before every test."""
     ob.message_id = 0
     ob.offers = []
     ob.trades = []
     self.public_id = get_public_bytestring()
Example #3
0
 def test_encrypt_decrypt_message(self):
     message = "Hello, world"
     encrypted_message = cr.encrypt_message(cr.get_public_bytestring(), message)
     decrypted_message = cr.decrypt_message(encrypted_message)
     assert_equal(message, decrypted_message)