#NEWLINE# def test_need_admin( self ) : #NEWLINE# #INDENT# ' need_admin is True if no admins ' #NEWLINE# access = IMutableAccessBackend ( None ) #NEWLINE# with patch . object ( access , 'user_data' ) as user_data : #NEWLINE# #INDENT# user_data . return_value = [ { #NEWLINE# #INDENT# 'admin' : False , #NEWLINE# #UNINDENT# } ] #NEWLINE# self . assertTrue ( access . need_admin ( ) )