def test_bind_bound_variable_fail(self): self.assertFalse(eliza.match_variable('foo', 'bar', {'foo': 'baz'}))
def test_bind_bound_variable_success(self): self.assertEqual(eliza.match_variable('foo', 'bar', {'foo': 'bar'}), {'foo': 'bar'})
def test_bind_unbound_variable(self): self.assertEqual(eliza.match_variable('foo', 'bar', {'baz': 'quux'}), {'baz': 'quux', 'foo': 'bar'})
def test_bind_unbound_variable(self): self.assertEqual(eliza.match_variable('foo', 'bar', {'baz': 'quux'}), { 'baz': 'quux', 'foo': 'bar' })