import os

from django.test import TestCase, RequestFactory
from django.test.utils import override_settings

import pivot
from pivot.utils import get_latest_term


TEST_CSV_PATH = os.path.join(os.path.dirname(pivot.__file__),
                             'test',
                             'test_resources',
                             'csvfiles/',)


class UtilsTest(TestCase):
    @override_settings(CSV_ROOT=TEST_CSV_PATH)
    def test_google_analytics_processor(self):
        self.assertEquals(get_latest_term(), 'au12')

import os

from django.test import TestCase, RequestFactory
from django.test.utils import override_settings

import pivot
from pivot.utils import get_latest_term


TEST_CSV_PATH = os.path.join(os.path.dirname(pivot.__file__),
                             'test',
                             'test_resources',
                             'csvfiles/',)


class UtilsTest(TestCase):
    @override_settings(CSV_ROOT=TEST_CSV_PATH)
    def test_get_latest_term(self):
        self.assertEquals(get_latest_term(), 'au12')

Rename test to something more descriptive.
Rename test to something more descriptive.

  import os
  
  from django.test import TestCase, RequestFactory
  from django.test.utils import override_settings
  
  import pivot
  from pivot.utils import get_latest_term
  
  
  TEST_CSV_PATH = os.path.join(os.path.dirname(pivot.__file__),
                               'test',
                               'test_resources',
                               'csvfiles/',)
  
  
  class UtilsTest(TestCase):
      @override_settings(CSV_ROOT=TEST_CSV_PATH)
-     def test_google_analytics_processor(self):
+     def test_get_latest_term(self):
          self.assertEquals(get_latest_term(), 'au12')
  
Rename test to something more descriptive.
## Code Before:
import os

from django.test import TestCase, RequestFactory
from django.test.utils import override_settings

import pivot
from pivot.utils import get_latest_term


TEST_CSV_PATH = os.path.join(os.path.dirname(pivot.__file__),
                             'test',
                             'test_resources',
                             'csvfiles/',)


class UtilsTest(TestCase):
    @override_settings(CSV_ROOT=TEST_CSV_PATH)
    def test_google_analytics_processor(self):
        self.assertEquals(get_latest_term(), 'au12')

## Instruction:
Rename test to something more descriptive.
## Code After:
import os

from django.test import TestCase, RequestFactory
from django.test.utils import override_settings

import pivot
from pivot.utils import get_latest_term


TEST_CSV_PATH = os.path.join(os.path.dirname(pivot.__file__),
                             'test',
                             'test_resources',
                             'csvfiles/',)


class UtilsTest(TestCase):
    @override_settings(CSV_ROOT=TEST_CSV_PATH)
    def test_get_latest_term(self):
        self.assertEquals(get_latest_term(), 'au12')
