#NEWLINE# def test_eq( self ) : #NEWLINE# #INDENT# flow_record = FlowRecord ( { #NEWLINE# #INDENT# 'message' : SAMPLE_RECORDS [ 1 ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# actual = { x : getattr ( flow_record , x ) for x in FlowRecord . __slots__ } #NEWLINE# expected = { #NEWLINE# #INDENT# 'account_id' : '123456789010' , #NEWLINE# 'action' : 'ACCEPT' , #NEWLINE# 'bytes' : 1680 , #NEWLINE# 'dstaddr' : '198.51.100.1' , #NEWLINE# 'dstport' : 443 , #NEWLINE# 'end' : datetime ( 2015 , 8 , 12 , 13 , 47 , 45 ) , #NEWLINE# 'interface_id' : 'eni-102010ab' , #NEWLINE# 'log_status' : 'OK' , #NEWLINE# 'packets' : 20 , #NEWLINE# 'protocol' : 6 , #NEWLINE# 'srcaddr' : '192.0.2.1' , #NEWLINE# 'srcport' : 49152 , #NEWLINE# 'start' : datetime ( 2015 , 8 , 12 , 13 , 47 , 44 ) , #NEWLINE# 'version' : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( actual , expected )