old_contents: from django.test import TestCase
  
  # Create your tests here.
  
new_contents: from django.test import TestCase
  import factory
  
  
  class UserFactory(factory.django.DjangoModelFactory):
      class Meta:
          model = 'ImagerProfile.ImagerProfile'
          django_get_or_create = ('username',)
  
      username = 'John'
  
subject: Add UserFactory to tests