@pytest.mark.django_db
def test_address_create(self):
    ' Test address model '
    address = AddressFactory()
    assert (address is not None)
Test address model
@pytest.mark.django_db
def test_address_create(self):
    '  '
    address = AddressFactory()
    assert (address is not None)