Commit 17e0d60b authored by Łukasz Nowak's avatar Łukasz Nowak

Assert fetched data.

parent 4aa8959b
......@@ -162,6 +162,13 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
self.assertEqual(sorted(['published', 'archived']), sorted([
q.getValidationState() for q in document_list]))
result, data = self.getInformation()
self.assertEqual(result, httplib.OK)
information_list = json.loads(data)
self.assertEquals(1, len(information_list))
self.assertEquals(json.dumps(information_list[0]), self.data)
def test_post_information_more_than_once_no_tic(self):
"""
Check if posting information is working.
......
65
\ No newline at end of file
66
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment