From 8e4ce7ca18041df4288c1bf1c5f6c7ed95610f8e Mon Sep 17 00:00:00 2001 From: Holger <holger@nahrstaedt.de> Date: Sat, 16 Jun 2018 08:55:52 +0200 Subject: [PATCH] Fix account unit test for py27 --- tests/beem/test_account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/beem/test_account.py b/tests/beem/test_account.py index d8f58f0e..964e0271 100644 --- a/tests/beem/test_account.py +++ b/tests/beem/test_account.py @@ -478,7 +478,8 @@ class Testcases(unittest.TestCase): for k in keys: if k not in "json_metadata" and k != 'reputation' and k != 'active_votes' and k != 'savings_sbd_seconds': if isinstance(content[k], dict) and isinstance(json_content[k], list): - self.assertEqual(list(content[k].values()), json_content[k]) + content_list = [content[k]["amount"], content[k]["precision"], content[k]["nai"]] + self.assertEqual(content_list, json_content[k]) else: self.assertEqual(content[k], json_content[k]) -- GitLab