示例#1
0
 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'
示例#2
0
 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'