def METHOD_NAME(self):
    result = self.cli("record", "session", "--build", self.build_name,
                      "--flavor", "key=value", "--flavor", "k", "v", "--flavor", "k e y = v a l u e")
    self.assertEqual(result.exit_code, 0)
    payload = json.loads(responses.calls[0].request.body.decode())
    self.assert_json_orderless_equal({
        "flavors": {
            "key": "value",
            "k": "v",
            "k e y": "v a l u e",
        },
        "isObservation": False,
        "links": [],
        "noBuild": False,
        "lineage": None,
    }, payload)
    with self.assertRaises(ValueError):
        result = self.cli("record", "session", "--build", self.build_name, "--flavor", "only-key")
        self.assertEqual(result.exit_code, 1)
        self.assertTrue(
            "Expected key-value like --option kye=value or --option key value." in result.output)