summaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-04-05 11:59:27 -0400
committerJim Meyering <jim@meyering.net>2006-04-05 11:59:27 -0400
commit5b0f54d5674a1b47c112342994b6f0bae6172809 (patch)
tree30f90a213ccdaf6881525d027b1b587393c956bd /test.py
parent975fc8a2d6183345061b20988f160df3bed60dd2 (diff)
downloadthird_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.tar.gz
third_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.tar.xz
third_party-cobbler-5b0f54d5674a1b47c112342994b6f0bae6172809.zip
Added dry-run support. Pre-refactoring cleanup. Moved config file to /etc.
Diffstat (limited to 'test.py')
-rw-r--r--test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.py b/test.py
index ded4cdb..70f192c 100644
--- a/test.py
+++ b/test.py
@@ -22,7 +22,7 @@ class BootTest(unittest.TestCase):
def setUp(self):
try:
# it will interfere with results...
- os.file.remove("bootconf.conf")
+ os.file.remove("/etc/bootconf.conf")
except:
pass
self.api = api.BootAPI()
@@ -38,6 +38,7 @@ class BootTest(unittest.TestCase):
self.api = None
def make_basic_config(self):
+ self.assertTrue(os.getuid() == 0)
distro = self.api.new_distro()
self.assertTrue(distro.set_name("testdistro0"))
self.assertTrue(distro.set_kernel(FAKE_KERNEL))