#NEWLINE# def test_should_store_generic_via_constructor( self ) : #NEWLINE# #INDENT# data = { #NEWLINE# #INDENT# 'container_ref' : self . entity_href , #NEWLINE# #UNINDENT# } #NEWLINE# self . responses . post ( ( self . entity_base + '/' ) , json = data ) #NEWLINE# container = self . manager . create ( name = self . container . name , secrets = self . container . generic_secrets ) #NEWLINE# container_href = container . store ( ) #NEWLINE# self . assertEqual ( self . entity_href , container_href ) #NEWLINE# self . assertEqual ( ( self . entity_base + '/' ) , self . responses . last_request . url ) #NEWLINE# container_req = json . loads ( self . responses . last_request . text ) #NEWLINE# self . assertEqual ( self . container . name , container_req [ 'name' ] ) #NEWLINE# self . assertEqual ( self . container . type , container_req [ 'type' ] ) #NEWLINE# self . assertEqual ( self . container . generic_secret_refs_json , container_req [ 'secret_refs' ] )