Update the user management app API tests to test for fail and success scenarios

based on permissions and access. The tests were also updated to comform
with the new API test class interface.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-02-17 02:19:16 -04:00
committed by Roberto Rosario
parent c9f6d64b44
commit eae881c35a
3 changed files with 323 additions and 189 deletions

View File

@@ -57,6 +57,7 @@ class BaseAPITestCase(UserMixin, APITestCase):
self.assertTrue(logged_in)
self.assertTrue(user.is_authenticated)
return user.is_authenticated
def login_user(self):
self.login(username=TEST_USER_USERNAME, password=TEST_USER_PASSWORD)