def test_create_symmetric_key_with_invalid_length(self):
        engine = crypto.CryptographyEngine()

        args = [enums.CryptographicAlgorithm.AES, 'invalid']
        self.assertRaises(
            exceptions.InvalidField,
            engine.create_symmetric_key,
            *args
        )
Test that an InvalidField error is raised when creating a symmetric
dataset/ETHPy150Open OpenKMIP/PyKMIP/kmip/tests/unit/services/server/crypto/test_engine.py/TestCryptographyEngine.test_create_symmetric_key_with_invalid_length