diff options
author | Priit Laes <plaes@plaes.org> | 2010-07-31 11:13:20 +0300 |
---|---|---|
committer | Priit Laes <plaes@plaes.org> | 2010-07-31 11:13:20 +0300 |
commit | 5fc9236c7047f324a43438a6b9cd8e8b3442aaac (patch) | |
tree | 1a15faff2ef6c23d2f3ddb2d4a39ac3c64306cb6 /grumpy | |
parent | Clean up testsuite a bit (diff) | |
download | gsoc2010-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.py | 2 |
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() |