[Calypso] [PATCH] tests: use assertEquals instead of assertTrue
Guido Günther
agx at sigxcpu.org
Fri Oct 21 07:16:13 PDT 2016
so we see the actual differenct of the strings
---
tests/test_collection.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/test_collection.py b/tests/test_collection.py
index baa49d9..489d387 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -29,7 +29,7 @@ class TestCollection(unittest.TestCase):
self.assertTrue(collection.import_file(self.test_vcard))
self.assertEqual(len(collection.items), 2)
org = u'Universitetet i Tromsø'
- self.assertTrue(org == collection.items[0].object.org.value[0])
+ self.assertEquals(org, collection.items[0].object.org.value[0])
def test_uid_with_slash(self):
collection = Collection("/")
@@ -38,5 +38,5 @@ class TestCollection(unittest.TestCase):
veventuid = collection.items[0].object.vevent.uid.value
r = paths.resource_from_path(veventuid)
c = paths.collection_from_path(veventuid)
- self.assertTrue(r == veventuid)
- self.assertTrue("/" == c)
+ self.assertEquals(r, veventuid)
+ self.assertEquals("/", c)
--
2.9.3
More information about the Calypso
mailing list