def test_authorization(self):
        s = self.app.root.securityDefinitions
        self.assertEqual(list(s.keys()), ['oauth2'])

        ss = s['oauth2']
        self.assertEqual(ss.type, 'oauth2')
        self.assertEqual(ss.name, None)
        self.assertEqual(getattr(ss, 'in'), None)
        self.assertEqual(ss.flow, 'implicit')
        self.assertEqual(ss.authorizationUrl, 'http://petstore.swagger.wordnik.com/api/oauth/dialog')
        self.assertEqual(ss.tokenUrl, 'http://petstore.swagger.wordnik.com/api/oauth/token')
        self.assertEqual(ss.scopes, {'write:pets': 'Modify pets in your account', 'read:pets': 'Read your pets'})
Sets the proposal value for this node iff this node is not already aware of
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_upgrade.py/Swagger_Upgrade_TestCase.test_authorization--crossover with--dataset/ETHPy150Open cocagne/paxos/paxos/essential.py/Proposer.set_proposal