view backend/sqlalchemy/util.py @ 199:1220e62b63dd

implement a somewhat useful unit test for the Feed class
author dirk
date Fri, 27 Jan 2012 02:51:36 +0100
parents 04a730f9d07d
children bb3c851b18b1
line wrap: on
line source


import sys

def databaseLoggingEnabled():
    loggingEnabled = False
    for arg in sys.argv:
        if arg == "--databaseLogging":
            loggingEnabled = True
    return loggingEnabled