from core.models import Category

from django.test.testcases import TestCase
from django.urls import reverse


class ExportViewMixinTest(TestCase):

    def setUp(self):
        self.url = reverse('export-category')
        self.cat1 = Category.objects.create(name='Cat 1')
        self.cat2 = Category.objects.create(name='Cat 2')

    def test_get(self):
        response = self.client.get(self.url)
        self.assertContains(response, self.cat1.name, status_code=200)
        self.assertTrue(response['Content-Type'], 'text/html')

    def test_post(self):
        data = {
            'file_format': '0',
        }
        response = self.client.post(self.url, data)
        self.assertContains(response, self.cat1.name, status_code=200)
        self.assertTrue(response.has_header("Content-Disposition"))
        self.assertTrue(response['Content-Type'], 'text/csv')

@@ -477,36 +477,38 @@
      self.assert
-True
+Equals
 (response%5B'Conte
@@ -528,16 +528,31 @@
 ext/html
+; charset=utf-8
 ')%0A%0A    
@@ -833,36 +833,38 @@
      self.assert
-True
+Equals
 (response%5B'Conte

Correct mistaken assertTrue() -> assertEquals()