#NEWLINE# @ istest #NEWLINE# def checks_that_a_database_is_not_present( self ) : #NEWLINE# #INDENT# with self . execute_mock ( ) as execute : #NEWLINE# #INDENT# execute . return_value = DATABASES #NEWLINE# result = self . role . is_database_present ( 'bad_bad_database' ) #NEWLINE# self . assertFalse ( execute ) #NEWLINE# execute . assert_called_with ( 'mysql -u root -E -e "SHOW DATABASES" mysql' , stdout = False , sudo = True )