示例#1
0
 def test_disabled_header(self):
     self.printer = Printer(self.strategy, noheading=True)
     self.printer.set_header("heading")
     self.assert_calls(None, [])
示例#2
0
 def create_printer(self, strategy):
     return Printer(strategy, noheading=self.get_option('noheading'))
示例#3
0
 def setUp(self):
     self.strategy = Mock()
     self.printer = Printer(self.strategy)