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