[Calypso-commits] [calypso] 01/02: tests: use assertEquals instead of assertTrue
Guido Guenther
agx at moszumanska.debian.org
Sun Oct 23 09:53:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch master
in repository calypso.
commit 12e0056fa48ab87d69094966fe6aff3508b6cc0b
Author: Guido Günther <agx at sigxcpu.org>
Date: Fri Oct 21 15:51:39 2016 +0200
tests: use assertEquals instead of assertTrue
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 f3e3ad1..26612e4 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -20,7 +20,7 @@ class TestCollection(CalypsoTestCase):
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("/")
@@ -29,5 +29,5 @@ class TestCollection(CalypsoTestCase):
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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/calypso/calypso.git
More information about the Calypso-commits
mailing list