def test_all_reductions_identities(self): t = p('II') self.assertEqual(Expression.all_reductions(t)[0](), (e(I), [], [e(I)]))
def test_all_reductions_atom(self): self.assertEqual(len(Expression.all_reductions(e(I))), 1) [ cl, ] = Expression.all_reductions(e(I)) (reduced, reactives, biproducts) = cl()