#NEWLINE# @ unittest . skip ( 'Fails under Django 1.6' ) #NEWLINE# def test_project_users_get_readonly_role_on_add_form( self ) : #NEWLINE# #INDENT# self . _project_create ( ) #NEWLINE# alice_data = { #NEWLINE# #INDENT# 'username' : 'alice' , #NEWLINE# 'email' : 'alice@localhost.com' , #NEWLINE# #UNINDENT# } #NEWLINE# alice_profile = self . _create_user_profile ( alice_data ) #NEWLINE# ReadOnlyRole . add ( alice_profile . user , self . project ) #NEWLINE# self . assertTrue ( ReadOnlyRole . user_has_role ( alice_profile . user , self . project ) ) #NEWLINE# self . _publish_xls_form_to_project ( ) #NEWLINE# self . assertTrue ( ReadOnlyRole . user_has_role ( alice_profile . user , self . xform ) ) #NEWLINE# self . assertFalse ( OwnerRole . user_has_role ( alice_profile . user , self . xform ) )