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