#NEWLINE# def test_get_db_names_fail( self ) : #NEWLINE# #INDENT# inst = self . instance #NEWLINE# mgr = inst . _user_manager #NEWLINE# mgr . instance = inst #NEWLINE# dbname1 = utils . random_ascii ( ) #NEWLINE# dbname2 = utils . random_ascii ( ) #NEWLINE# inst . list_databases = Mock ( return_value = ( dbname1 , dbname2 ) ) #NEWLINE# self . assertRaises ( exc . NoSuchDatabase , mgr . _get_db_names , 'BAD' )