def test_instance_creation(self): entity = Image(guid="x" * 16, handle="*****@*****.**", public=False, remote_path="foobar", remote_name="barfoo") entity.validate()
def test_required_fields(self): entity = Image( guid="x" * 16, handle="*****@*****.**", public=False, remote_name="barfoo" ) with pytest.raises(ValueError): entity.validate() entity = Image( guid="x" * 16, handle="*****@*****.**", public=False, remote_path="foobar" ) with pytest.raises(ValueError): entity.validate()
def test_instance_creation(self): entity = Image( guid="x"*16, handle="*****@*****.**", public=False, remote_path="foobar", remote_name="barfoo" ) entity.validate()