def get(null, items): return self.i.t.names().addCallback(got, items.keys())
def third(nameList): desiredList = [x for x in items.keys() if x != 'c'] desiredList.sort() nameList.sort() self.failUnlessEqual(nameList, desiredList)
def loaded(items): itemKeys = items.keys() itemKeys.sort() self.failUnlessEqual(itemKeys, ['bar', 'foo'])
def loaded(items): itemKeys = items.keys() itemKeys.sort() self.failUnlessEqual(itemKeys, ["bar", "foo"])