Exemple #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
 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 #3
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 #5
0
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return