Exemplo 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
Exemplo 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
Exemplo n.º 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
Exemplo n.º 4
0
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return
Exemplo n.º 5
0
 def tearDown(self):
     self.tape.clear()
     set_recorder(None)
     return