Switch to side-by-side view

--- a/Allura/allura/tests/functional/test_auth.py
+++ b/Allura/allura/tests/functional/test_auth.py
@@ -109,12 +109,13 @@
         """Make sure when a user goes to a new project only one project role is created.
            There was an issue with extra project roles getting created if a user went directly to
            an admin page."""
+        p = M.Project.query.get(shortname='test')
         self.app.post('/auth/save_new', params=dict(username='aaa',
                                                         password='12345678',
                                                         display_name='Test Me',
                                                         open_ids='http://somewhere',
                                                         email_addresses='test@test.com')).follow()
         user = M.User.query.get(username='aaa')
-        assert len(M.ProjectRole.query.find(dict(user_id=user._id)).all()) == 0
+        assert M.ProjectRole.query.find(dict(user_id=user._id, project_id=p._id)).count() == 0
         self.app.get('/p/test/admin/perms',extra_environ=dict(username='aaa'))
-        assert len(M.ProjectRole.query.find(dict(user_id=user._id)).all()) == 1
+        assert M.ProjectRole.query.find(dict(user_id=user._id, project_id=p._id)).count() == 1