#NEWLINE# @ mock . patch . object ( glanceclient . common . http . HTTPClient , 'get' ) #NEWLINE# def test_determine_curr_major_version_unsupported( self , http_client_mock ) : #NEWLINE# #INDENT# result = ( 'http://host1:9292/v2/' , { #NEWLINE# #INDENT# 'versions' : [ { #NEWLINE# #INDENT# 'status' : 'CURRENT' , #NEWLINE# 'id' : 'v666.0' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'status' : 'SUPPORTED' , #NEWLINE# 'id' : 'v1.0' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# http_client_mock . return_value = result #NEWLINE# maj_ver = glance . _determine_curr_major_version ( 'http://host1:9292' ) #NEWLINE# self . assertIsNone ( http_client_mock )