class documentation

class UserTests(APITestCase, TestCase):

View In Hierarchy

This is User test class.

Class Method setUpTestData This is setUp class method to populate the database
Method test_create_user Ensure that we can create a user
Method test_delete_user Ensure that the user can be deleted
Method test_search_user Ensure that a user can be searched
Method test_show_user Ensure that we are able to retrieve the user details
Method test_update_user Ensure that the user is being updated correctly
@classmethod
def setUpTestData(cls):

This is setUp class method to populate the database

def test_create_user(self):

Ensure that we can create a user

def test_delete_user(self):

Ensure that the user can be deleted

def test_search_user(self):

Ensure that a user can be searched

def test_show_user(self):

Ensure that we are able to retrieve the user details

def test_update_user(self):

Ensure that the user is being updated correctly