Beispiel #1
0
 def test404(self):
     response = app.geolocalize(ip='0.0.0.0')
     self.assertEqual(response, '{"message": "%s"}' % app.get_message(404))
Beispiel #2
0
 def test400(self):
     response = app.badRequest(None)
     self.assertEqual(response, '{"message": "%s"}' % app.get_message(400))
Beispiel #3
0
 def testDefault(self):
     response = app.geolocalize()
     self.assertEqual(response, '{"message": "%s"}' % app.get_message(404))