#NEWLINE# def test_migration( self ) : #NEWLINE# #INDENT# if ( django . VERSION >= ( 1 , 7 ) ) : #NEWLINE# #INDENT# from os.path import abspath , dirname , join , exists #NEWLINE# app_dir = dirname ( abspath ( __file__ ) ) #NEWLINE# self . assertTrue ( exists ( join ( app_dir , 'models.py' ) ) ) #NEWLINE# migrations_dir = join ( app_dir , 'migrations' ) #NEWLINE# self . assertTrue ( ( not exists ( migrations_dir ) ) ) #NEWLINE# call_command ( 'makemigrations' , 'tests' ) #NEWLINE# call_command ( 'sqlmigrate' , 'tests' , '0001' )