#NEWLINE# def test_check_plugin_version( self ) : #NEWLINE# #INDENT# template = { #NEWLINE# #INDENT# 'plugin_name' : 'vanilla' , #NEWLINE# 'hadoop_version' : '2.7.1' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertTrue ( utils . check_plugin_version ( self , None ) ) #NEWLINE# self . assertTrue ( utils . check_plugin_version ( template , [ '2.7.1' ] ) ) #NEWLINE# self . assertTrue ( utils . check_plugin_version ( template , [ 'vanilla.2.7.1' ] ) ) #NEWLINE# self . assertFalse ( utils . check_plugin_version ( template , [ '1.2.1' ] ) )