def test_protocol_read_one_fails(self): """Try to get a single point with a wrong primary key""" proto = Protocol(session, Spot) proto.read(FakeRequest({}), id=-1)
def test_protocol_delete_fails(self): """Try to delete a not-existing point""" proto = Protocol(session, Spot) proto.delete(FakeRequest({}), FakeResponse(), -1)
def test_protocol_count(self): """Get the feature count""" proto = Protocol(session, Spot) eq_(proto.count(FakeRequest({})), '9')