def test_load_keyvalue_object_fail(self):
        """Test failure to load key/value pair where the value is an object
        and the -c/--convert option is not passed
        """
        fd, path = tempfile.mkstemp(suffix=".json")
        try:
            with open(path, "a") as f:
                f.write(json.dumps(KEYVALUE_OBJECT, indent=4))

            # test converting with short option
            args = ["key", "load", path]
            retcode = self.shell.run(args)
            self.assertNotEqual(retcode, 0)
        finally:
            os.close(fd)
            os.unlink(path)
Test failure to load key/value pair where the value is an object
        and the -c/--convert option is not passed
        
st2client/tests/unit/test_keyvalue.py