diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2006-04-05 11:59:27 -0400 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-04-05 11:59:27 -0400 |
commit | 5b0f54d5674a1b47c112342994b6f0bae6172809 (patch) | |
tree | 30f90a213ccdaf6881525d027b1b587393c956bd /test.py | |
parent | 975fc8a2d6183345061b20988f160df3bed60dd2 (diff) | |
download | third_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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |