#NEWLINE# @ skipUnlessDBFeature ( 'supports_tablespaces' ) #NEWLINE# def test_tablespace_for_model( self ) : #NEWLINE# #INDENT# sql = sql_for_table ( Scientist ) . lower ( ) #NEWLINE# if settings . DEFAULT_INDEX_TABLESPACE : #NEWLINE# #INDENT# self . assertNumContains ( sql , 'tbl_tbsp' , 1 ) #NEWLINE# self . assertNumContains ( sql , settings . DEFAULT_INDEX_TABLESPACE , 1 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertNumContains ( sql , 'tbl_tbsp' , 2 )