#NEWLINE# def test_version_is_not_present_in_release_data( self ) : #NEWLINE# #INDENT# sample = { #NEWLINE# #INDENT# 'name' : 'test_name' , #NEWLINE# 'version' : '0.1.1' , #NEWLINE# 'fuel_version' : [ '6.0' ] , #NEWLINE# 'title' : 'Test plugin' , #NEWLINE# 'package_version' : '1.0.0' , #NEWLINE# 'releases' : [ { #NEWLINE# #INDENT# 'os' : 'Ubuntu' , #NEWLINE# 'mode' : [ 'ha' , 'multinode' ] , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# resp = self . env . create_plugin ( sample = sample , api = True , expect_errors = True ) #NEWLINE# self . assertEqual ( resp . status_code , 400 )