Skip to content

Instantly share code, notes, and snippets.

@imarban
Created August 22, 2016 06:34
Show Gist options
  • Save imarban/18066c504f6146a3daef48294130c79c to your computer and use it in GitHub Desktop.
Save imarban/18066c504f6146a3daef48294130c79c to your computer and use it in GitHub Desktop.
class PrintReporterTest:
def print_now_mock:
print report.content
@classmethod
def setup_class(cls):
self.printer = WirelessPrinter("0.0.0.0")
self.printer.print_now = print_now_mock
def test_print():
self.printer.print_now()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment