@pytest.mark.django_db
def test_phone_create_invalid_num(self):
    ' Test phone contact method '
    phone_num = 'abcdefsfdsf'
    phone = PhoneContactMethodFactory.create(phone=phone_num)
    assert (phone_num == phone.phone)
    assert (phone.id is not None)
    print('\n\n\n\n-------------id is ', id)
Test phone contact method
@pytest.mark.django_db
def test_phone_create_invalid_num(self):
    '  '
    phone_num = 'abcdefsfdsf'
    phone = PhoneContactMethodFactory.create(phone=phone_num)
    assert (phone_num == phone.phone)
    assert (phone.id is not None)
    print('\n\n\n\n-------------id is ', id)