def test_disabled_header(self): self.printer = Printer(self.strategy, noheading=True) self.printer.set_header("heading") self.assert_calls(None, [])
def create_printer(self, strategy): return Printer(strategy, noheading=self.get_option('noheading'))
def setUp(self): self.strategy = Mock() self.printer = Printer(self.strategy)