  def testGetCliCredentials(self, mock_azure_credentials):
    """Test that AzureCliCredentials are properly parsed"""
    mock_azure_credentials.return_value = None

    os.environ['AZURE_CONFIG_DIR'] = os.path.join(
        os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
            os.path.realpath(__file__))))), azure_mocks.AZURE_CONFIG_DIR)

    subscription_id, _ = common.GetCredentials()

    self.assertEqual('12345678-1234-5678-1234-567812345678', subscription_id)
Test that AzureCliCredentials are properly parsed
tests/providers/azure/internal/test_common.py