Fix and streamline user_management app tests.

This commit is contained in:
Roberto Rosario
2017-01-07 02:06:24 -04:00
parent ea64515490
commit 53d356d992
2 changed files with 42 additions and 53 deletions

View File

@@ -92,6 +92,9 @@ class GenericViewTestCase(BaseTestCase):
def login_user(self):
self.login(username=TEST_USER_USERNAME, password=TEST_USER_PASSWORD)
def logout(self):
self.client.logout()
def post(self, viewname, *args, **kwargs):
data = kwargs.pop('data', {})
follow = kwargs.pop('follow', False)