<s> from __future__ import unicode_literals <EOL> import logging <EOL> from django . test import TestCase <EOL> from calaccess_raw import get_model_list <EOL> from django . test . utils import override_settings <EOL> from django . core . management import call_command <EOL> logger = logging . getLogger ( __name__ ) <EOL> class CommandTestCase ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> multi_db = True <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> """<STR_LIT>""" <EOL> super ( CommandTestCase , cls ) . setUpClass ( ) <EOL> kwargs = dict ( verbosity = <NUM_LIT:3> , test_data = True , noinput = True ) <EOL> call_command ( "<STR_LIT>" , ** kwargs ) <EOL> @ override_settings ( BASE_DIR = '<STR_LIT>' ) <EOL> def test_csv_gettrs ( self ) : <EOL> """<STR_LIT>""" <EOL> for m in get_model_list ( ) : <EOL> self . assertEqual ( m . objects . get_csv_name ( ) , m ( ) . get_csv_name ( ) ) <EOL> self . assertEqual ( m . objects . get_csv_path ( ) , m ( ) . get_csv_path ( ) ) <EOL> def test_verifycalacessrawfile ( self ) : <EOL> """<STR_LIT>""" <EOL> call_command ( "<STR_LIT>" , '<STR_LIT>' ) <EOL> call_command ( "<STR_LIT>" , '<STR_LIT>' ) <EOL> def test_totalcalacessrawdata ( self ) : <EOL> """<STR_LIT>""" <EOL> call_command ( "<STR_LIT>" ) </s>
