def test_instance_creation_validates_email_value(self): with pytest.raises(ValueError): entity = Profile(handle="*****@*****.**", raw_content="foobar", email="foobar") entity.validate()
def test_guid_is_mandatory(self): entity = Profile(handle="*****@*****.**", raw_content="foobar") with pytest.raises(ValueError): entity.validate()
def test_guid_is_not_mandatory(self): entity = Profile(handle="*****@*****.**", raw_content="foobar") entity.validate()