# -*- coding: UTF-8 -*- """The eGovMon time package test $Id: test.py 803 2008-12-03 12:08:26Z goodwin $ """ # Copyright 2008-2010 eGovMon # This program is distributed under the terms of the GNU General # Public License. # # This file is part of the eGovernment Monitoring # (eGovMon) # # eGovMon is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # eGovMon is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with eGovMon; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, # MA 02110-1301 USA __author__ = "$Author: goodwin $" __version__ = "$Revision: 803 $" __updated__ = "$LastChangedDate$" from egovmontime import * import string import doctest, unittest """Test suite for the RDF generator""" #Doctests result = [] class TestSequenceFunctions(unittest.TestCase): def setUp(self): #Overriding time to make sure that the functionality in egovmontime works. #Note that this does not test the functionality of egovmontime itself, but the basic functionality. time.sleep = lambda(n): True def testnomodulesset(self): import time self.assert_(time.sleep(0.1)) import time self.assert_(time.sleep(0.1)) time = reload(time) self.assert_(time.sleep(0.1)==None) if __name__ == "__main__": result += unittest.main()