'Test the valid case, wherein an association is returned on the
first attempt to get one.'

def testValid(self):

    assoc = association.Association('handle', 'secret', 'issued', 10000, 'HMAC-SHA1')
    self.consumer.return_messages = [assoc]
    self.failUnless((self.consumer._negotiateAssociation(self.endpoint) is assoc))
    self.failUnlessLogEmpty()
