#NEWLINE# def assertShortTrie( self , t , value = 42 ) : #NEWLINE# #INDENT# 'Asserts a trie has only _SHORT_KEY set to value.' #NEWLINE# self . assertEquals ( 1 , len ( t ) ) #NEWLINE# for prefix in self . _SHORT_PREFIXES : #NEWLINE# #INDENT# self . assertNodeState ( t , prefix , prefix = True ) #NEWLINE# #UNINDENT# for key in ( self . _LONG_PREFIXES + ( self . _LONG_KEY , self . _VERY_LONG_KEY , self . _OTHER_KEY ) ) : #NEWLINE# #INDENT# self . assertNodeState ( t , key ) #NEWLINE# #UNINDENT# self . assertNodeState ( t , self . _SHORT_KEY , value = value )