class documentation

class FlatTests(APITestCase, TestCase):

View In Hierarchy

This is Flat test class.

Class Method setUpTestData This is setUp class method to populate the database
Method test_create_flat Ensure we can create a new Flat object.
Method test_delete_flat Ensure we can delete a flat object.
Method test_search_flat Ensure that we can search a flat with given search paramaters
Method test_show_flat Ensure we can fetch a flat object.
Method test_update_interested Ensure we can update a flat object.
@classmethod
def setUpTestData(cls):

This is setUp class method to populate the database

def test_create_flat(self):

Ensure we can create a new Flat object.

def test_delete_flat(self):

Ensure we can delete a flat object.

def test_search_flat(self):

Ensure that we can search a flat with given search paramaters

def test_show_flat(self):

Ensure we can fetch a flat object.

def test_update_interested(self):

Ensure we can update a flat object.