#NEWLINE# def test_get_winner( self ) : #NEWLINE# #INDENT# self . assertIs ( get_winner ( { #NEWLINE# #INDENT# 1 : 5 , #NEWLINE# 2 : 5 , #NEWLINE# #UNINDENT# } ) , None ) #NEWLINE# cases = [ ( { #NEWLINE# #INDENT# 1 : 6 , #NEWLINE# 2 : 5 , #NEWLINE# #UNINDENT# } , 1 ) , ( { #NEWLINE# #INDENT# 1 : 5 , #NEWLINE# 2 : 6 , #NEWLINE# #UNINDENT# } , 2 ) , ( { #NEWLINE# #INDENT# 1 : 1 , #NEWLINE# 2 : 6 , #NEWLINE# 3 : 4 , #NEWLINE# #UNINDENT# } , 2 ) ] #NEWLINE# for ( totals , winner ) in cases : #NEWLINE# #INDENT# with self . subTest ( totals = totals , winner = self ) : #NEWLINE# #INDENT# self . assertEqual ( get_winner ( totals ) , winner )