def test_strOrDate(self): from pyEX.common import _strOrDate, PyEXception from datetime import datetime _strOrDate('test') _strOrDate(datetime.now()) try: _strOrDate(5) assert False except PyEXception: pass
def test_strOrDate(self): from datetime import datetime from pyEX.common import PyEXception, _strOrDate _strOrDate("test") _strOrDate(datetime.now()) try: _strOrDate(5) assert False except PyEXception: pass