Example #1
0
 def test_instance_creation_validates_email_value(self):
     with pytest.raises(ValueError):
         entity = Profile(handle="*****@*****.**",
                          raw_content="foobar",
                          email="foobar")
         entity.validate()
Example #2
0
 def test_guid_is_mandatory(self):
     entity = Profile(handle="*****@*****.**", raw_content="foobar")
     with pytest.raises(ValueError):
         entity.validate()
Example #3
0
 def test_instance_creation_validates_email_value(self):
     with pytest.raises(ValueError):
         entity = Profile(handle="*****@*****.**", raw_content="foobar", email="foobar")
         entity.validate()
Example #4
0
 def test_guid_is_mandatory(self):
     entity = Profile(handle="*****@*****.**", raw_content="foobar")
     with pytest.raises(ValueError):
         entity.validate()
Example #5
0
 def test_guid_is_not_mandatory(self):
     entity = Profile(handle="*****@*****.**", raw_content="foobar")
     entity.validate()