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