#NEWLINE# def test_max_count( self ) : #NEWLINE# #INDENT# 'Tests the max count' #NEWLINE# d = { #NEWLINE# #INDENT# 'foo' : 10 , #NEWLINE# 'bar' : 20 , #NEWLINE# 'zip' : 30 , #NEWLINE# 'zoo' : 4 , #NEWLINE# #UNINDENT# } #NEWLINE# gen = util . max_count ( d ) #NEWLINE# assert ( ( 30 , 'zip' ) == next ( self ) ) #NEWLINE# assert ( ( 20 , 'bar' ) == next ( gen ) ) #NEWLINE# assert ( ( 10 , 'foo' ) == next ( gen ) ) #NEWLINE# assert ( ( 4 , 'zoo' ) == next ( gen ) )