Esempio n. 1
0
    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)
Esempio n. 2
0
    def test_protocol_delete_fails(self):
        """Try to delete a not-existing point"""
        proto = Protocol(session, Spot)

        proto.delete(FakeRequest({}), FakeResponse(), -1)
Esempio n. 3
0
    def test_protocol_count(self):
        """Get the feature count"""
        proto = Protocol(session, Spot)

        eq_(proto.count(FakeRequest({})), '9')