root/branch/UmitTestSuite/tests/core/test_scheduler.py @ 4880

Revision 4880, 2.5 kB (checked in by mahesh, 4 years ago)

modified with imports check

RevLine 
[4879]1# Copyright (C) 2005-2009 Adriano Monteiro Marques.
2#
3# Author: Mahesh P M <mahesh20081984@gmail.com>
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, write to the Free Software
17# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19
20
21import unittest
22try:
[4880]23        import os
24        import sys
25        import time
26        import signal
27        import warnings
28        import subprocess
29        from datetime import datetime
30        from ConfigParser import ConfigParser
31
32        from umit.core.BGProcess import BGRunner
33        from umit.core.Paths import Path
34        from umit.core.UmitLogging import file_log
35        from umit.core.I18N import _
36        from umit.core.CronParser import CronParser
37        from umit.core.NmapCommand import NmapCommand
38        from umit.core.Email import Email
39        from umit.db.XMLStore import XMLStore
[4879]40        from umit.core.Scheduler import Scheduler
[4880]41
[4879]42except:
43        print 'Import error in scheduler'
44from datetime import datetime
45
46stat = ''
47
48class TestScheduler(unittest.TestCase):
49        def testformat_asctime(self):
50                print ''
51        def testparse_schemas(self):
52                print ''
53        def testcheck_for_changes(self):
54                print ''
55        def test_get_schemas_stat(self):
56                print Scheduler._get_schemas_stat
57        stat = Scheduler._get_schemas_stat
58        def test_set_schemas_stat(stat):
59                print ''
60        def test_get_profiles_stat(self):
61                print Scheduler._get_profiles_stat
62        stat = Scheduler._get_profiles_stat
63        def test_set_profiles_stat(stat):
64                print ''
65        def test_get_schemas_file(self):
66                print Scheduler._get_schemas_stat
67        sfile = Scheduler._get_schemas_file
68        def test_set_schemas_file(sfile):
69                print ''
70        def test_get_profiles_file(self):
71                print Scheduler._get_profiles_stat
72        pfile = Scheduler._get_profiles_file
73        def test_set_profiles_file(pfile):
74                print ''
75
76
77
78if __name__ == "__main__":
79    print ">>> Testing Scheduler"
80    Scheduler_suite = unittest.TestLoader().loadTestsFromTestCase(TestScheduler)
81    unittest.TextTestRunner(verbosity=5).run(Scheduler_suite)
82    print
83
Note: See TracBrowser for help on using the browser.