# Path: md/defines.py
# class Defines(dict):
#     def __contains__(self, key):
#     def __setitem__(self, key, value):
#     def __getitem__(self, key):
#     def combine(self, overridingDefines):
#     def expand(self, inString):
# def normalizeKey(key, lower=True):
# def surround(name):
# def setOverrideDefines(defs, overrideGroup):
# def __setToolDefines(defs, overrideGroup):
# def __setFlagDefines(defs, overrideGroup):
# def setJobSlotsDefines(defs, jobSlots):
# def setPrefixDefines(defs, prefix):
# 
# Path: md/logger.py
# def secondsToHMS(seconds=0):
# def Logger():
# def setLogger(loggerName="", logOutputDir=""):
# def close():
# def writeMessage(message, targetName="", targetStep="", forceStdOut=False):
# def writeError(message, targetName="", targetStep="", filePath="", lineNumber=0, exitProgram=False):
# def reportSkipped(targetName="", targetStep="", reason=""):
# def reportStart(targetName="", targetStep=""):
# def reportSuccess(targetName="", targetStep="", timeInSeconds=0):
# def reportFailure(targetName="", targetStep="", timeInSeconds=0, returnCode=0, exitProgram=False):
# def getOutFd(targetName="", targetStep=""):
# def getErrorFd(targetName="", targetStep=""):
#     def _writeStdOut(self, message):
#     def _writeStdErr(self, message):
#     def close(self):
#     def writeMessage(self, message, targetName="", targetStep=""):
#     def writeError(self, message, targetName="", targetStep="", filePath="", lineNumber=0, exitProgram=False):
#     def reportSkipped(self, targetName="", targetStep="", reason=""):
#     def reportStart(self, targetName="", targetStep=""):
#     def reportSuccess(self, targetName="", targetStep="", timeInSeconds=0):
#     def reportFailure(self, targetName="", targetStep="", timeInSeconds=0, returnCode=0, exitProgram=False):
#     def getOutFd(self, targetName="", targetStep=""):
#     def getErrorFd(self, targetName="", targetStep=""):
# class LoggerBase(object):


import sys, unittest
from md import defines, logger
        self.assertEquals(defines.normalizeKey("(foo)"), "(foo)", "normalizeKey() returned wrong value")
        self.assertEquals(defines.normalizeKey("$foo)"), "$foo)", "normalizeKey() returned wrong value")
        self.assertEquals(defines.normalizeKey("$foo"), "$foo", "normalizeKey() returned wrong value")

    def test_surround(self):
        self.assertEquals(defines.surround("foo"), "$(foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("Foo"), "$(Foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("fOo"), "$(fOo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foO"), "$(foO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOo"), "$(FOo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOO"), "$(FOO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("fOO"), "$(fOO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foO"), "$(foO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOO "), "$(FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround(" FOO "), "$( FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("  FOO "), "$(  FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("    FOO "), "$(    FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("$(foo)"), "$($(foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$(foo"), "$($(foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foo)"), "$(foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("(foo)"), "$((foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$foo)"), "$($foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$foo"), "$($foo)", "surround() returned wrong value")

def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(Test_defines))
    return suite

if __name__ == "__main__":

# Path: md/defines.py
# class Defines(dict):
#     def __contains__(self, key):
#     def __setitem__(self, key, value):
#     def __getitem__(self, key):
#     def combine(self, overridingDefines):
#     def expand(self, inString):
# def normalizeKey(key, lower=True):
# def surround(name):
# def setOverrideDefines(defs, overrideGroup):
# def __setToolDefines(defs, overrideGroup):
# def __setFlagDefines(defs, overrideGroup):
# def setJobSlotsDefines(defs, jobSlots):
# def setPrefixDefines(defs, prefix):
# 
# Path: md/logger.py
# def secondsToHMS(seconds=0):
# def Logger():
# def setLogger(loggerName="", logOutputDir=""):
# def close():
# def writeMessage(message, targetName="", targetStep="", forceStdOut=False):
# def writeError(message, targetName="", targetStep="", filePath="", lineNumber=0, exitProgram=False):
# def reportSkipped(targetName="", targetStep="", reason=""):
# def reportStart(targetName="", targetStep=""):
# def reportSuccess(targetName="", targetStep="", timeInSeconds=0):
# def reportFailure(targetName="", targetStep="", timeInSeconds=0, returnCode=0, exitProgram=False):
# def getOutFd(targetName="", targetStep=""):
# def getErrorFd(targetName="", targetStep=""):
#     def _writeStdOut(self, message):
#     def _writeStdErr(self, message):
#     def close(self):
#     def writeMessage(self, message, targetName="", targetStep=""):
#     def writeError(self, message, targetName="", targetStep="", filePath="", lineNumber=0, exitProgram=False):
#     def reportSkipped(self, targetName="", targetStep="", reason=""):
#     def reportStart(self, targetName="", targetStep=""):
#     def reportSuccess(self, targetName="", targetStep="", timeInSeconds=0):
#     def reportFailure(self, targetName="", targetStep="", timeInSeconds=0, returnCode=0, exitProgram=False):
#     def getOutFd(self, targetName="", targetStep=""):
#     def getErrorFd(self, targetName="", targetStep=""):
# class LoggerBase(object):


# Path: test/test_defines.py
import sys, unittest
from md import defines, logger

        self.assertEquals(defines.normalizeKey("(foo)"), "(foo)", "normalizeKey() returned wrong value")
        self.assertEquals(defines.normalizeKey("$foo)"), "$foo)", "normalizeKey() returned wrong value")
        self.assertEquals(defines.normalizeKey("$foo"), "$foo", "normalizeKey() returned wrong value")

    def test_surround(self):
        self.assertEquals(defines.surround("foo"), "$(foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("Foo"), "$(Foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("fOo"), "$(fOo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foO"), "$(foO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOo"), "$(FOo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOO"), "$(FOO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("fOO"), "$(fOO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foO"), "$(foO)", "surround() returned wrong value")
        self.assertEquals(defines.surround("FOO "), "$(FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround(" FOO "), "$( FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("  FOO "), "$(  FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("    FOO "), "$(    FOO )", "surround() returned wrong value")
        self.assertEquals(defines.surround("$(foo)"), "$($(foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$(foo"), "$($(foo)", "surround() returned wrong value")
        self.assertEquals(defines.surround("foo)"), "$(foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("(foo)"), "$((foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$foo)"), "$($foo))", "surround() returned wrong value")
        self.assertEquals(defines.surround("$foo"), "$($foo)", "surround() returned wrong value")

def suite():
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(Test_defines))
    return suite

if __name__ == "__main__":

    logger.setLogger("Console")