def testDelete(self): adao = AddressDAO() address = adao.findByIpPort(self.ip, self.port) adao.delete(address.id) a = adao.find(address.id) assert a is None, 'error deleting address'
def testSelect(self): adao = AddressDAO() address = adao.findByIpPort(self.ip, self.port) a = adao.find(address.id) assert a is not None, 'error selecting address'