summaryrefslogtreecommitdiffstats
path: root/testsuite/Testlib/TestOptions.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-13 15:02:46 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-13 15:02:46 -0400
commit836e995a7ab50c838ebff190f371b493d905a31c (patch)
tree0c32b34534169d92eb8ff87cc1b5a15ffa714dec /testsuite/Testlib/TestOptions.py
parentffde9c4783902d6904e41c3d5aa620d3f47b1117 (diff)
downloadbcfg2-836e995a7ab50c838ebff190f371b493d905a31c.tar.gz
bcfg2-836e995a7ab50c838ebff190f371b493d905a31c.tar.bz2
bcfg2-836e995a7ab50c838ebff190f371b493d905a31c.zip
abstracted out some common test stuff into common.py
Diffstat (limited to 'testsuite/Testlib/TestOptions.py')
-rw-r--r--testsuite/Testlib/TestOptions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/Testlib/TestOptions.py b/testsuite/Testlib/TestOptions.py
index 2129b9287..4c87b2f42 100644
--- a/testsuite/Testlib/TestOptions.py
+++ b/testsuite/Testlib/TestOptions.py
@@ -3,9 +3,9 @@ import sys
import unittest
from mock import Mock, patch
import Bcfg2.Options
+from ..common import *
-
-class TestOption(unittest.TestCase):
+class TestOption(Bcfg2TestCase):
def test__init(self):
self.assertRaises(Bcfg2.Options.OptionFailure,
Bcfg2.Options.Option,
@@ -68,7 +68,7 @@ class TestOption(unittest.TestCase):
assert o2.value == True
-class TestOptionSet(unittest.TestCase):
+class TestOptionSet(Bcfg2TestCase):
def test_buildGetopt(self):
opts = [('foo', Bcfg2.Options.Option('foo', 'test1', cmd='-G')),
('bar', Bcfg2.Options.Option('foo', 'test2')),
@@ -108,7 +108,7 @@ class TestOptionSet(unittest.TestCase):
self.assertTrue(oset3['foo'])
-class TestOptionParser(unittest.TestCase):
+class TestOptionParser(Bcfg2TestCase):
def test__init(self):
opts = [('foo', Bcfg2.Options.Option('foo', 'test1', cmd='-h')),
('bar', Bcfg2.Options.Option('foo', 'test2')),