Commit 3909b46f authored by Taddeus Kroes's avatar Taddeus Kroes

Improved possibility equality test.

parent e08af8cf
......@@ -10,8 +10,13 @@ class RulesTestCase(unittest.TestCase):
for p, e in zip(possibilities, expected):
self.assertEqual(p.root, e.root)
for pair in zip(p.args, e.args):
self.assertEqual(*pair)
if p.args == None:
self.assertIsNone(e.args)
elif e.args == None:
self.assertIsNone(p.args)
else:
for pair in zip(p.args, e.args):
self.assertEqual(*pair)
self.assertEqual(p, e)
......
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