Ejemplo n.º 1
0
    def test_nested_function_log_record(self):
        nested_function = logged_function()
        nested_function()

        self.assertEqual(2, len(list_handler.records))
        self._assert_log_record(list_handler.records[1], nested_function,
                                "logged.testing", "l_f.n_f")
Ejemplo n.º 2
0
    def test_nested_function_log_record(self):
        nested_function = logged_function()
        nested_function()

        self.assertEqual(2, len(list_handler.records))
        self._assert_log_record(
            list_handler.records[1], nested_function, "logged.testing",
            "l_f.n_f")
Ejemplo n.º 3
0
    def test_function_log_record(self):
        logged_function()

        self.assertEqual(1, len(list_handler.records))
        self._assert_log_record(list_handler.records[0], logged_function,
                                "test.dummy", "l_f")
Ejemplo n.º 4
0
    def test_function_log_record(self):
        logged_function()

        self.assertEqual(1, len(list_handler.records))
        self._assert_log_record(
            list_handler.records[0], logged_function, "test.dummy", "l_f")