add test for /check-ip

This commit is contained in:
Martin Zimmermann 2013-12-18 19:27:36 +01:00
parent cbee3f7b2e
commit d4f836fd65

View File

@ -290,6 +290,9 @@ class TestComments(unittest.TestCase):
# just for the record
assert self.post('/id/1/dislike', content_type=js).status_code == 200
def testCheckIP(self):
assert self.get('/check-ip').data.decode("utf-8") == '192.168.1.0'
class TestModeratedComments(unittest.TestCase):