#NEWLINE# def test_VendorStore( self ) : #NEWLINE# #INDENT# v = self . vs . get_vendors ( ) #NEWLINE# self . assertEqual ( v , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# addr = Node . IPAddress ( ) #NEWLINE# addr . ip = '127.0.0.1' #NEWLINE# addr . port = 1234 #NEWLINE# n = Node ( ) #NEWLINE# n . guid = digest ( 'abcdefg' ) #NEWLINE# n . publicKey = digest ( 'signed pubkey' ) #NEWLINE# n . nodeAddress . MergeFrom ( addr ) #NEWLINE# n . natType = FULL_CONE #NEWLINE# self . vs . save_vendor ( self . u . guid , n . SerializeToString ( ) ) #NEWLINE# v = self . vs . get_vendors ( ) #NEWLINE# self . assertIsNot ( v , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . vs . delete_vendor ( self . u . guid ) #NEWLINE# v = self . vs . get_vendors ( ) #NEWLINE# self . assertEqual ( v , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )