Skip to content

Commit

Permalink
Fixing test now error text has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Mar 10, 2020
1 parent 731bb37 commit 0aa879d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def test05_do_GET_test(self):
v.fetch.side_effect = Exception('Fetch failed')
j = json.loads(v.do_GET_test())
self.assertEqual(j['okay'], 0)
self.assertEqual(j['error'], 'Cannot fetch url')
self.assertTrue(j['error'].startswith('Cannot fetch url'))
# bogus URL
v = val_mod.Validator()
request = LocalRequest({'QUERY_STRING': 'url=not_http://a.b.c/'})
Expand Down

0 comments on commit 0aa879d

Please sign in to comment.