from nose.tools import *  # flake8: noqa

from tests.base import ApiTestCase

from api.base.pagination import MaxSizePagination

class TestMaxPagination(ApiTestCase):
    def test_no_query_param_alters_page_size(self):
        assert_is_none(MaxSizePagination.page_size_query_param)

from nose.tools import *  # flake8: noqa

from tests.base import ApiTestCase

from api.base.pagination import MaxSizePagination

class TestMaxPagination(ApiTestCase):
    def test_no_query_param_alters_page_size(self):
        assert MaxSizePagination.page_size_query_param is None, 'Adding variable page sizes to the paginator ' +\
            'requires tests to ensure that you can\'t request more than the class\'s maximum number of values.'

Add error message for future breakers-of-tests
Add error message for future breakers-of-tests

  from nose.tools import *  # flake8: noqa
  
  from tests.base import ApiTestCase
  
  from api.base.pagination import MaxSizePagination
  
  class TestMaxPagination(ApiTestCase):
      def test_no_query_param_alters_page_size(self):
-         assert_is_none(MaxSizePagination.page_size_query_param)
+         assert MaxSizePagination.page_size_query_param is None, 'Adding variable page sizes to the paginator ' +\
+             'requires tests to ensure that you can\'t request more than the class\'s maximum number of values.'
  
Add error message for future breakers-of-tests
## Code Before:
from nose.tools import *  # flake8: noqa

from tests.base import ApiTestCase

from api.base.pagination import MaxSizePagination

class TestMaxPagination(ApiTestCase):
    def test_no_query_param_alters_page_size(self):
        assert_is_none(MaxSizePagination.page_size_query_param)

## Instruction:
Add error message for future breakers-of-tests
## Code After:
from nose.tools import *  # flake8: noqa

from tests.base import ApiTestCase

from api.base.pagination import MaxSizePagination

class TestMaxPagination(ApiTestCase):
    def test_no_query_param_alters_page_size(self):
        assert MaxSizePagination.page_size_query_param is None, 'Adding variable page sizes to the paginator ' +\
            'requires tests to ensure that you can\'t request more than the class\'s maximum number of values.'
