예제 #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)