diff options
author | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-03-31 19:39:43 +0000 |
---|---|---|
committer | astokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8> | 2010-03-31 19:39:43 +0000 |
commit | 706105a0d834e474a0629ff81b79e6d61db59640 (patch) | |
tree | a7b38644c0c46c9a1dab9b086573e73fd61ddc7f /tests/testbasic.py | |
parent | 12f4bcdeec1a108be40936e4afb26d30119288ee (diff) | |
download | sos-706105a0d834e474a0629ff81b79e6d61db59640.tar.gz |
remove old unittests
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@906 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'tests/testbasic.py')
-rw-r--r-- | tests/testbasic.py | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/tests/testbasic.py b/tests/testbasic.py deleted file mode 100644 index 231481ae..00000000 --- a/tests/testbasic.py +++ /dev/null @@ -1,59 +0,0 @@ -import os, sys, shutil -from commons import * -from nose.tools import * -from sos.sosreport import * -from glob import glob - -class GlobalVars: - pass - -class TestBasicSos: - def __init__(self): - GlobalVars.dstroot = None - GlobalVars.commons = commons - # clean pre-existing dummy plugins - for i in glob(GlobalVars.commons['pluginpath']+'/dummyPlugin*'): - os.remove(os.path.join(GlobalVars.commons['pluginpath'],i)) - - def setup(self): - """ prework """ - pass - - def teardown(self): - """ cleanup dstroot and other miscellaneous files """ - if os.path.isdir(GlobalVars.dstroot) and not None: - shutil.rmtree(GlobalVars.dstroot) - - def testSosreportBin(self): - """ test existence of sosreport bin """ - if not os.path.isfile(GlobalVars.commons['bin']): - raise AssertionError("Sosreport executable does not exist") - - - def testUnattended(self): - """ test unattended """ - GlobalVars.commons['testOptions'].append("-ofilesys") - GlobalVars.dstroot = sosreport(GlobalVars.commons['testOptions']) - if not os.path.isdir(GlobalVars.dstroot): - raise AssertionError("No sosreport created") - - def testPluginEnable(self): - """ test success of plugin enable """ - if os.path.isdir(GlobalVars.commons['pluginpath']): - shutil.copy('fixture/dummyPluginEnabled.py',GlobalVars.commons['pluginpath']) - GlobalVars.commons['testOptions'].append('-odummyPluginEnabled') - GlobalVars.dstroot = sosreport(GlobalVars.commons['testOptions']) - if os.path.isdir(GlobalVars.dstroot) \ - and os.path.isfile(os.path.join(GlobalVars.dstroot,'tmp/testenabled.file')): - return True - raise AssertionError("testenabled.file not found") - - def testPluginDisable(self): - """ test plugin disable """ - if os.path.isdir(GlobalVars.commons['pluginpath']): - shutil.copy('fixture/dummyPluginDisabled.py',GlobalVars.commons['pluginpath']) - GlobalVars.dstroot = sosreport(["-nrpm","-nselinux","--batch","--build"]) - if os.path.isdir(GlobalVars.dstroot) \ - and os.path.isfile(os.path.join(GlobalVars.dstroot,'tmp/testenabled.file')): - raise AssertionError("plugin not disabled") - return True |