def test_af_bindlink(self): # Remember the starting atomspace size. starting_size = self.atomspace.size() # Run bindlink. atom = af_bindlink(self.atomspace, self.bindlink_atom) self.assertTrue(atom is not None and atom.value() > 0) # Check the ending atomspace size, it should have added one SetLink. ending_size = self.atomspace.size() self.assertEquals(ending_size, starting_size + 1) # The SetLink is empty. ??? Should it be. self.assertEquals(atom.arity, 0) self.assertEquals(atom.type, types.SetLink)
def test_af_bindlink(self): atom = af_bindlink(self.atomspace, self.bindlink_atom) # The SetLink is empty. ??? Should it be. self._check_result_setlink(atom, 0)