old_contents: from django.test import TestCase
  
  from forums.models import Category
  
  
  class CategoryModelTest(TestCase):
      def test_category_creation(self):
          category = Category.objects.create(**{
              'name': 'Category',
          })
  
          self.assertEquals(category.name, 'Category')
  
new_contents: from django.test import TestCase
  
  from forums.models import Category
  from forums.tests.factories import CategoryFactory
  
  
  class CategoryModelTest(TestCase):
      def test_category_creation(self):
          category = CategoryFactory.create()
  
          self.assertEquals(category.name, 'Category')
  
subject: use category factory for category creation test