#NEWLINE# def test_publish_to_public_project( self ) : #NEWLINE# #INDENT# public_project = Project ( name = 'demo' , shared = True , metadata = json . dumps ( { #NEWLINE# #INDENT# 'description' : '' , #NEWLINE# #UNINDENT# } ) , created_by = self . user , organization = self . user ) #NEWLINE# public_project . save ( ) #NEWLINE# self . project = public_project #NEWLINE# self . _publish_xls_form_to_project ( public = True ) #NEWLINE# self . assertEquals ( self . xform . shared , True ) #NEWLINE# self . assertEquals ( self . xform . shared_data , True )