Example #1
0
 def setUp(self):
     super().setUp()
     self.key = get_hex_random_key()
Example #2
0
 def test_valid(self):
     self.assertRegex(get_hex_random_key(), r"^[0-9a-f]*$")
Example #3
0
 def test_length(self):
     # Should be 16 bytes.
     self.assertEqual(len(get_hex_random_key()), 32)
Example #4
0
 def setUp(self):
     super(TestEncryptAndDecryptBinary, self).setUp()
     self.key = get_hex_random_key()
Example #5
0
 def setUp(self):
     super().setUp()
     self.key = get_hex_random_key()
Example #6
0
 def test_length(self):
     # Should be 16 bytes.
     self.assertEqual(len(get_hex_random_key()), 32)
Example #7
0
 def test_valid(self):
     self.assertRegex(get_hex_random_key(), r"^[0-9a-f]*$")
Example #8
0
 def setUp(self):
     super(TestEncryptAndDecryptBinary, self).setUp()
     self.key = get_hex_random_key()