'Handle a full successful association response'

def test_worksWithGoodFields(self):

    assoc = self.consumer._extractAssociation(self.assoc_response, self.assoc_session)
    self.failUnless(self.assoc_session.extract_secret_called)
    self.failUnlessEqual(self.assoc_session.secret, assoc.secret)
    self.failUnlessEqual(1000, assoc.lifetime)
    self.failUnlessEqual(self.assoc_handle, assoc.handle)
    self.failUnlessEqual(self.assoc_type, assoc.assoc_type)
