aboutsummaryrefslogtreecommitdiff
path: root/grumpy
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2010-07-31 11:13:20 +0300
committerPriit Laes <plaes@plaes.org>2010-07-31 11:13:20 +0300
commit5fc9236c7047f324a43438a6b9cd8e8b3442aaac (patch)
tree1a15faff2ef6c23d2f3ddb2d4a39ac3c64306cb6 /grumpy
parentClean up testsuite a bit (diff)
downloadgsoc2010-grumpy-5fc9236c7047f324a43438a6b9cd8e8b3442aaac.tar.gz
gsoc2010-grumpy-5fc9236c7047f324a43438a6b9cd8e8b3442aaac.tar.bz2
gsoc2010-grumpy-5fc9236c7047f324a43438a6b9cd8e8b3442aaac.zip
Test for user owning the Favorite
Diffstat (limited to 'grumpy')
-rw-r--r--grumpy/testsuite/favorites.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/grumpy/testsuite/favorites.py b/grumpy/testsuite/favorites.py
index a5958e2..94e9d9f 100644
--- a/grumpy/testsuite/favorites.py
+++ b/grumpy/testsuite/favorites.py
@@ -67,6 +67,8 @@ class FavoritesTestCase(GrumpyTestCase):
self.assertRaises(IntegrityError, self.db.session.commit)
self.db.session.rollback()
assert len(u.favorites) == 1
+ for i in u.favorites:
+ assert u == i.user
def suite():
suite = unittest.TestSuite()