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