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()
See `graph_reference.get_valid_attributes`.
dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_negotiation.py/TestOpenID2SessionNegotiation.testValid--crossover with--dataset/ETHPy150Open plotly/plotly.py/plotly/graph_objs/graph_objs.py/PlotlyDict._get_valid_attributes