Fixed invalid response when sending a test-request from Locative iOS app (#5179)

This commit is contained in:
Sander de Leeuw 2017-01-05 09:05:39 +01:00 committed by Johann Kellerman
parent 2f907696f3
commit 497a1c84b5
2 changed files with 13 additions and 6 deletions

View file

@ -108,6 +108,13 @@ class TestLocative(unittest.TestCase):
req = requests.get(_url(copy))
self.assertEqual(200, req.status_code)
# Test message, no location
copy = data.copy()
copy['trigger'] = 'test'
del copy['id']
req = requests.get(_url(copy))
self.assertEqual(200, req.status_code)
# Unknown trigger
copy = data.copy()
copy['trigger'] = 'foobar'