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

Improved possibility equality test.

parent e08af8cf
......@@ -10,6 +10,11 @@ class RulesTestCase(unittest.TestCase):
for p, e in zip(possibilities, expected):
self.assertEqual(p.root, e.root)
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)
......
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