Commit 107a3ebf authored by Łukasz Nowak's avatar Łukasz Nowak

Always assert results of used methods.

parent 3d98a6dd
...@@ -143,11 +143,17 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase): ...@@ -143,11 +143,17 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
""" """
Check if posting information is working. Check if posting information is working.
""" """
self.postInformation() result, data = self.postInformation()
self.assertEqual(result, httplib.CREATED)
self.assertEqual(data, '')
transaction.commit() transaction.commit()
self.tic() self.tic()
self.postInformation() result, data = self.postInformation()
self.assertEqual(result, httplib.CREATED)
self.assertEqual(data, '')
transaction.commit() transaction.commit()
self.tic() self.tic()
......
61 62
\ No newline at end of file \ 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