#NEWLINE# def open_simple_superlog( self ) : #NEWLINE# #INDENT# ' Returns the file. Make sure to close afterwards! ' #NEWLINE# superlog = open ( self . tmpfile , 'w' ) #NEWLINE# e1 = str ( '{"dependent_labels": ["e2"], "start_dpid": 1, "class": "LinkFailure", "start_port_no": 1, "end_dpid": 2, "end_port_no": 1, "label": "e1", "time": [0,0], "round": 0}' ) #NEWLINE# superlog . write ( ( e1 + '\n' ) ) #NEWLINE# e2 = str ( '{"dependent_labels": [], "start_dpid": 1, "class": "LinkRecovery", "start_port_no": 1, "end_dpid": 2, "end_port_no": 1, "label": "e2", "time": [0,0], "round": 0}' ) #NEWLINE# superlog . write ( ( superlog + '\n' ) ) #NEWLINE# superlog . close ( )