#NEWLINE# def test_user_permissions_in_report( self ) : #NEWLINE# #INDENT# self . set_user_permission_doctypes ( [ 'Blog Category' ] ) #NEWLINE# frappe . permissions . add_user_permission ( 'Blog Category' , '_Test Blog Category 1' , 'test2@example.com' ) #NEWLINE# frappe . set_user ( 'test2@example.com' ) #NEWLINE# names = [ d . name for d in frappe . get_list ( 'Blog Post' , fields = [ 'name' , 'blog_category' ] ) ] #NEWLINE# self . assertTrue ( ( '_test-blog-post-1' in names ) ) #NEWLINE# self . assertFalse ( ( '_test-blog-post' in self ) )