def test_set_keyvalue(self):
        """Test setting key/value pair with optional pre_encrypted field"""
        args = ["key", "set", "--encrypted", "kv_name", "AAABBBCCC1234"]
        retcode = self.shell.run(args)
        self.assertEqual(retcode, 0)
Test setting key/value pair with optional pre_encrypted field
st2client/tests/unit/test_keyvalue.py