#NEWLINE# def test_start_container( self ) : #NEWLINE# #INDENT# mock_conn = self . mox . CreateMockAnything ( ) #NEWLINE# mock_conn . request ( 'POST' , '/v1.4/containers/XXX/start' , body = '{}' , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = FakeResponse ( 200 , headers = { #NEWLINE# #INDENT# 'Content-Type' : 'application/json' , #NEWLINE# #UNINDENT# } ) #NEWLINE# mock_conn . getresponse ( ) . AndReturn ( response ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# client = nova . virt . docker . client . DockerHTTPClient ( mock_conn ) #NEWLINE# self . assertEqual ( True , client . start_container ( 'XXX' ) ) #NEWLINE# self . mox . VerifyAll ( )