def test_SpecifyThatDebugPrintCanWriteAMessageToConsole(self, print_): Utils.DEBUG_PRINT_ENABLED = True Utils.DebugPrint("Sample debug message") print_.assert_called_with("Sample debug message")
def test_SpecifyThatDebugPrintCanWriteADictionaryToConsole(self, print_): Utils.DEBUG_PRINT_ENABLED = True Utils.DebugPrint({"Message": "Sample debug message"}) print_.assert_called_with({'Message': 'Sample debug message'})