<s> from __future__ import ( absolute_import , division , <EOL> print_function , unicode_literals ) <EOL> import sys <EOL> from unittest import TestCase <EOL> from os . path import abspath , dirname , join <EOL> from pylint . testutils import linter <EOL> class SettingsTestCase ( TestCase ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> DATA = join ( dirname ( abspath ( __file__ ) ) , '<STR_LIT>' ) <EOL> sys . path . insert ( <NUM_LIT:1> , DATA ) <EOL> def setUp ( self ) : <EOL> linter . reporter . finalize ( ) <EOL> def test_required_setting_missed ( self ) : <EOL> linter . check ( '<STR_LIT>' ) <EOL> got = linter . reporter . finalize ( ) . strip ( ) <EOL> self . assertEqual ( <EOL> got , """<STR_LIT>""" ) <EOL> def test_empty_settings ( self ) : <EOL> linter . check ( '<STR_LIT>' ) <EOL> got = linter . reporter . finalize ( ) . strip ( ) <EOL> self . assertEqual ( <EOL> got , '''<STR_LIT>''' ) </s>
