#NEWLINE# def test_round_trip( self ) : #NEWLINE# #INDENT# o = Observable ( ) #NEWLINE# o . title = 'An observable' #NEWLINE# o . description = 'some text' #NEWLINE# o . description . structuring_format = 'plain' #NEWLINE# o . id_ = 'abc123' #NEWLINE# o . object_ = Object ( ) #NEWLINE# pf = PatternFidelity ( ) #NEWLINE# ot = ObfuscationTechnique ( ) #NEWLINE# ot . description = 'X0Rz' #NEWLINE# pf . evasion_techniques = ObfuscationTechniques ( ) #NEWLINE# pf . evasion_techniques . append ( pf ) #NEWLINE# o . pattern_fidelity = pf #NEWLINE# o2 = round_trip ( o ) #NEWLINE# self . assertEqual ( o . to_dict ( ) , o2 . to_dict ( ) )