| 384 | assert obj.say_everything() == "B says hi 1 times 4444" |
| 385 | |
| 386 | class DR(m.D_Repeat): |
| 387 | def unlucky_number(self): |
| 388 | return 123 |
| 389 | |
| 390 | def lucky_number(self): |
| 391 | return 42.0 |
| 392 | |
| 393 | for obj in [m.D_Repeat(), m.D_Tpl()]: |
| 394 | assert obj.say_something(3) == "B says hi 3 times" |
no outgoing calls