def test_fetching_all_speeches(self): persistence.save_speech("Good Session!") self.fetch_json("/speeches") self.failIf(self.response.error) result = json.loads(self.response.body) self.assertEqual(["Good Session!"], result)
def post(self, *args, **kwargs): save_speech("abc")