def testLinuxNannyLog(self):
    with tempfile.NamedTemporaryFile() as fd:
      nanny_controller = client_utils_linux.NannyController()
      nanny_controller.StartNanny(nanny_logfile=fd.name)
      grr_message = rdf_flows.GrrMessage(session_id="W:test")

      nanny_controller.WriteTransactionLog(grr_message)
      self.assertRDFValuesEqual(grr_message,
                                nanny_controller.GetTransactionLog())
      nanny_controller.CleanTransactionLog()

      self.assertIsNone(nanny_controller.GetTransactionLog())

      nanny_controller.StopNanny()
Depth-first iterator over sub-extensions on `extension`.
dataset/ETHPy150Open google/grr/grr/client/client_utils_test.py/ClientUtilsTest.testLinuxNannyLog--crossover with--dataset/ETHPy150Open onefinestay/nameko/nameko/extensions.py/iter_extensions