def test_delete(self):
        ann = Annotation(text=u"Bar", id=456)
        session.commit()

        response = self.app.delete('/annotations/456')
        assert response.status_code == 204, "response should be 204 NO CONTENT"

        assert Annotation.get(456) == None, "annotation wasn't deleted in db"
 def _get_annotation(self, id_):
     return Annotation.get(id_)