コード例 #1
0
    def test_should_pass_when_calling_debug_with_a_pattern_and_some_arguments(
            self):

        muted_logger = MutedLogger()

        muted_logger.debug("Debugging %d and %s.", 12, "abc")
コード例 #2
0
    def test_should_pass_when_calling_warn_with_a_pattern_and_some_arguments(
            self):

        muted_logger = MutedLogger()

        muted_logger.warn("Warning you about %s and %d", "abc", 12)
コード例 #3
0
    def test_should_pass_when_calling_debug_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.debug("Hello I am debugging you.")
コード例 #4
0
    def test_should_pass_when_calling_error_with_a_pattern_and_some_arguments(
            self):

        muted_logger = MutedLogger()

        muted_logger.error("You did it %d times and I think %s.", 12, "abc")
コード例 #5
0
    def test_should_pass_when_calling_warn_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.warn("Hello I am warning you.")
コード例 #6
0
    def test_should_pass_when_calling_info_with_a_pattern_and_some_arguments(
            self):

        muted_logger = MutedLogger()

        muted_logger.info("Hello world.", 12, "abc")
コード例 #7
0
    def test_should_pass_when_calling_error_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.error("Why did you do this?")
コード例 #8
0
    def test_should_pass_when_calling_debug_with_a_pattern_and_some_arguments(self):

        muted_logger = MutedLogger()

        muted_logger.debug("Debugging %d and %s.", 12, "abc")
コード例 #9
0
    def test_should_pass_when_calling_info_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.info("Hello world.")
コード例 #10
0
    def test_should_pass_when_calling_warn_with_a_pattern_and_some_arguments(self):

        muted_logger = MutedLogger()

        muted_logger.warn("Warning you about %s and %d", "abc", 12)
コード例 #11
0
    def test_should_pass_when_calling_debug_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.debug("Hello I am debugging you.")
コード例 #12
0
    def test_should_pass_when_calling_warn_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.warn("Hello I am warning you.")
コード例 #13
0
    def test_should_pass_when_calling_error_with_a_pattern_and_some_arguments(self):

        muted_logger = MutedLogger()

        muted_logger.error("You did it %d times and I think %s.", 12, "abc")
コード例 #14
0
    def test_should_pass_when_calling_error_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.error("Why did you do this?")
コード例 #15
0
    def test_should_pass_when_calling_info_with_a_pattern_and_some_arguments(self):

        muted_logger = MutedLogger()

        muted_logger.info("Hello world.", 12, "abc")
コード例 #16
0
    def test_should_pass_when_calling_info_with_a_simple_string(self):

        muted_logger = MutedLogger()

        muted_logger.info("Hello world.")