@pytest.mark.django_db
def test_coop_create_with_no_types(self):
    ' Test customer model '
    print('\n\n\n\n**********-------- starting test ....\n')
    coop = CoopFactory.build(types=[])
    print('phone:', coop.phone.phone)
    print('email:', coop.email.email)
    coop.full_clean()
    self.assertIsNotNone(coop)
    self.assertIsNone(coop.id)
Test customer model
@pytest.mark.django_db
def test_coop_create_with_no_types(self):
    '  '
    print('\n\n\n\n**********-------- starting test ....\n')
    coop = CoopFactory.build(types=[])
    print('phone:', coop.phone.phone)
    print('email:', coop.email.email)
    coop.full_clean()
    self.assertIsNotNone(coop)
    self.assertIsNone(coop.id)