From 3dfa814846e9055f34692221058dc22605bee686 Mon Sep 17 00:00:00 2001
From: Mark <mark@openappstack.net>
Date: Thu, 5 Dec 2019 12:23:30 +0100
Subject: [PATCH] Rename values to obj to make naming consistent

---
 .../login_logout/test/behave/features/steps/login.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/login_logout/test/behave/features/steps/login.py b/test/login_logout/test/behave/features/steps/login.py
index 0c9574d..fd631bf 100644
--- a/test/login_logout/test/behave/features/steps/login.py
+++ b/test/login_logout/test/behave/features/steps/login.py
@@ -32,15 +32,15 @@ def step_impl(context, element, variable):
 
 @then(u'I expect that the "{variable}" in the json output is "{value}"')
 def step_impl(context, variable, value):
-    values = get_object_from_json_body(context)
-    assert values[variable] == context.oauth[value]
+    obj = get_object_from_json_body(context)
+    assert obj[variable] == context.oauth[value]
 
 @then(u'I expect that the "{variable}" in the json output contains "{value}"')
 def step_impl(context, variable, value):
-    values = get_object_from_json_body(context)
-    assert context.oauth[value] in values[variable]
+    obj = get_object_from_json_body(context)
+    assert context.oauth[value] in obj[variable]
 
 def get_object_from_json_body(context):
-    values_text = context.behave_driver.get_element("body").text
-    return json.loads(values_text)
+    obj_serialized = context.behave_driver.get_element("body").text
+    return json.loads(obj_serialized)
 
-- 
GitLab