#NEWLINE# def test_version( ) : #NEWLINE# #INDENT# assertions = { #NEWLINE# #INDENT# '3.2.1' : True , #NEWLINE# '==3.2.1' : True , #NEWLINE# '==3.2.2' : False , #NEWLINE# '> 2.2' : True , #NEWLINE# '> 3.4' : False , #NEWLINE# '<= 3.3.5' : True , #NEWLINE# '< 2.3' : False , #NEWLINE# #UNINDENT# } #NEWLINE# for ( version , val ) in assertions . items ( ) : #NEWLINE# #INDENT# nt . assert_true ( ( pkgconfig . installed ( PACKAGE_NAME , version ) == val ) )