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