<commit_before>from django.contrib.auth import get_user_model
from django.test import TestCase
from django.test.client import RequestFactory

from djstripe.models import DJStripeCustomer
from djstripe.contrib.rest_framework.permissions import DJStripeSubscriptionPermission

try:
    import rest_framework
except ImportError:
    rest_framework = None

if rest_framework:
    class TestUserHasActiveSubscription(TestCase):<commit_msg>forgot to move a line<commit_after>from django.contrib.auth import get_user_model
from django.test import TestCase
from django.test.client import RequestFactory

from djstripe.models import DJStripeCustomer

try:
    import rest_framework
except ImportError:
    rest_framework = None

if rest_framework:
    from djstripe.contrib.rest_framework.permissions import DJStripeSubscriptionPermission

    class TestUserHasActiveSubscription(TestCase):
{'fraction_non_alphanumeric': 0.043132803632236094, 'fraction_numerical': 0.0, 'mean_word_length': 6.35, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2270829', 'n_tokens_mistral': 238, 'n_tokens_neox': 240, 'n_words': 65}