def METHOD_NAME(self):
    with self.capture:
        Class.static_method()
    self.assertEqual(self.capture.getvalue(),
                     ">> static_method()\n" +
                     "<< static_method\n")