def test404(self): response = app.geolocalize(ip='0.0.0.0') self.assertEqual(response, '{"message": "%s"}' % app.get_message(404))
def testDefault(self): response = app.geolocalize() self.assertEqual(response, '{"message": "%s"}' % app.get_message(404))