aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/base/test_general_object.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-27 01:31:33 +0300
committerBonfaceKilz2020-08-27 01:42:46 +0300
commit869da13b92e70fa0769cd1a49e15b03e2c9d0550 (patch)
tree4a9d9847decf79cb3d0bfd6190110031cc34d6f3 /wqflask/tests/base/test_general_object.py
parentc030e128508b17896dbef3ba9794698195cafc04 (diff)
downloadgenenetwork2-869da13b92e70fa0769cd1a49e15b03e2c9d0550.tar.gz
Fix failing tests
Diffstat (limited to 'wqflask/tests/base/test_general_object.py')
-rw-r--r--wqflask/tests/base/test_general_object.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/wqflask/tests/base/test_general_object.py b/wqflask/tests/base/test_general_object.py
index c7701021..00fd3c72 100644
--- a/wqflask/tests/base/test_general_object.py
+++ b/wqflask/tests/base/test_general_object.py
@@ -17,9 +17,9 @@ class TestGeneralObjectTests(unittest.TestCase):
def test_object_dict(self):
"""Test whether the base class is printed properly"""
test_obj = GeneralObject("a", name="test", value=1)
- self.assertEqual(str(test_obj), "value = 1\nname = test\n")
+ self.assertEqual(str(test_obj), "name = test\nvalue = 1\n")
self.assertEqual(
- repr(test_obj), "value = 1\nname = test\ncontents = ['a']\n")
+ repr(test_obj), "contents = ['a']\nname = test\nvalue = 1\n")
self.assertEqual(len(test_obj), 2)
self.assertEqual(test_obj["value"], 1)
test_obj["test"] = 1
@@ -36,6 +36,5 @@ class TestGeneralObjectTests(unittest.TestCase):
test_obj1 = GeneralObject("a", name="test", value=1)
test_obj2 = GeneralObject("b", name="test2", value=2)
test_obj3 = GeneralObject("a", name="test", x=1, y=2)
- self.assertTrue(test_obj1 == test_obj2 )
- self.assertFalse(test_obj1 == test_obj3 )
-
+ self.assertTrue(test_obj1 == test_obj2)
+ self.assertFalse(test_obj1 == test_obj3)