Mercurial > kallithea
diff rhodecode/tests/test_models.py @ 1818:cf51bbfb120e beta
auto white-space removal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 29 Dec 2011 07:35:51 +0200 |
parents | a87aa385f21c |
children | 87f0800abc7b |
line wrap: on
line diff
--- a/rhodecode/tests/test_models.py Thu Dec 29 06:59:07 2011 +0200 +++ b/rhodecode/tests/test_models.py Thu Dec 29 07:35:51 2011 +0200 @@ -161,7 +161,7 @@ def __init__(self, methodName='runTest'): Session.remove() super(TestUser, self).__init__(methodName=methodName) - + def test_create_and_remove(self): usr = UserModel().create_or_update(username=u'test_user', password=u'qweqwe', email=u'u232@rhodecode.org', @@ -370,13 +370,13 @@ self.u1 = UserModel().create_or_update(username=u'u1', password=u'qweqwe', email=u'u1@rhodecode.org', - name=u'u1', lastname=u'u1') + name=u'u1', lastname=u'u1') def tearDown(self): perm = Permission.query().all() for p in perm: UserModel().revoke_perm(self.u1, p) - + UserModel().delete(self.u1) Session.commit() @@ -402,9 +402,3 @@ UserModel().revoke_perm(self.u1, perm) Session.commit() self.assertEqual(UserModel().has_perm(self.u1, perm),False) - - - - - -