#NEWLINE# def test_migrate_to_other_database( self ) : #NEWLINE# #INDENT# 'Regression test for #16039: migrate with --database option.' #NEWLINE# cts = ContentType . objects . using ( 'other' ) . filter ( app_label = 'multiple_database' ) #NEWLINE# count = cts . count ( ) #NEWLINE# self . assertGreater ( count , 0 ) #NEWLINE# cts . delete ( ) #NEWLINE# management . call_command ( 'migrate' , verbosity = 0 , interactive = False , database = 'other' ) #NEWLINE# self . assertEqual ( cts . count ( ) , count )