Esempio n. 1
0
 def test_insertions(self):
   table = SymTable()
   table.addItem(1,"Joe")
   assert_equal(table._data[1], "Joe")
Esempio n. 2
0
 def test_retrievals_local(self):
   table = SymTable()
   table.addItem(1,"Joe")
   assert_equal(table.lookup(1), "Joe")