def setUp(self):
     self.tape = Recorder()
     set_recorder(self.tape)
     p = Parent()
     c = Child()
     toy = Toy(color='blue', type='bunny')
     c.toy = toy
     p.children.append(c)
     self.p = p
     return
Beispiel #2
0
 def setUp(self):
     self.tape = Recorder()
     set_recorder(self.tape)
     p = Parent()
     c = Child()
     toy = Toy(color='blue', type='bunny')
     c.toy = toy
     p.children.append(c)
     self.p = p
     return
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return
Beispiel #4
0
 def setUp(self):
     tape = Recorder()
     # Set the global recorder.
     set_recorder(tape)
     self.tape = tape
Beispiel #5
0
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return
Beispiel #6
0
 def setUp(self):
     tape = Recorder()
     # Set the global recorder.
     set_recorder(tape)
     self.tape = tape