def test_find(self): s = Sustitucion() s.push(Var('a'), Fun(Var('x'), Var('y'))) self.assertEqual(s.find(Var('a')), Fun(Var('x'), Var('y')))