#NEWLINE# def test_get_user_fail( self ) : #NEWLINE# #INDENT# inst = self . instance #NEWLINE# bad_name = utils . random_unicode ( ) #NEWLINE# inst . _user_manager . get = Mock ( side_effect = exc . NotFound ( '' ) ) #NEWLINE# self . assertRaises ( exc . NoSuchDatabaseUser , inst . get_user , bad_name )