

def test_parses_access_token(self):
    parser = CredentialsParser(access_token='access_token$development$integration_merchant_id$fb27c79dd')
    parser.parse_access_token()
    self.assertEqual(parser.access_token, 'access_token$development$integration_merchant_id$fb27c79dd')
    self.assertEqual(parser.merchant_id, 'integration_merchant_id')
    self.assertEqual(parser.environment, braintree.Environment.Development)

dataset/ETHPy150Open braintree/braintree_python/tests/integration/test_credentials_parser.py TestCredentialsParser.test_parses_access_token/original