#NEWLINE# def test_check_user_does_not_have_permission_on_private_node_child( self ) : #NEWLINE# #INDENT# non_admin_user = factories . UserFactory ( ) #NEWLINE# parent = factories . ProjectFactory ( ) #NEWLINE# parent . add_contributor ( contributor = non_admin_user , permissions = [ 'read' ] ) #NEWLINE# parent . save ( ) #NEWLINE# node = factories . NodeFactory ( parent = parent , category = 'project' ) #NEWLINE# sub_component = factories . NodeFactory ( parent = node ) #NEWLINE# assert_false ( node . has_permission_on_children ( non_admin_user , 'read' ) )