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