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
Exemple #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
Exemple #4
0
 def setUp(self):
     tape = Recorder()
     # Set the global recorder.
     set_recorder(tape)
     self.tape = tape
Exemple #5
0
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return
 def setUp(self):
     tape = Recorder()
     # Set the global recorder.
     set_recorder(tape)
     self.tape = tape