#NEWLINE# def test_07_basic_create_resource_with_entry( self ) : #NEWLINE# #INDENT# conn = Connection ( SSS_URL , user_name = SSS_UN , user_pass = SSS_PW , http_impl = http ) #NEWLINE# conn . get_service_document ( ) #NEWLINE# col = conn . sd . workspaces [ 0 ] [ 1 ] [ 0 ] #NEWLINE# e = Entry ( title = 'An entry only deposit' , id = 'asidjasidj' , dcterms_abstract = 'abstract' , dcterms_identifier = 'http://whatever/' ) #NEWLINE# receipt = conn . create ( col_iri = col . href , metadata_entry = e ) #NEWLINE# assert ( conn . code == 201 ) #NEWLINE# assert ( receipt . location != None ) #NEWLINE# assert ( ( receipt . dom is None ) or ( receipt . parsed == True ) ) #NEWLINE# assert ( ( receipt . dom is None ) or ( receipt . valid == True ) )