summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Gracik <mgracik@redhat.com>2011-07-25 12:49:38 +0200
committerMartin Gracik <mgracik@redhat.com>2011-07-26 09:39:02 +0200
commit2e94beff09f8a903521c38d6e4c4200e0e1edcfc (patch)
tree5488b962161258277a24c8f78d0c6688ba227996 /tests
parent0c33e8f41adb412769e3fc335fe7db078711c3a0 (diff)
downloadanaconda-2e94beff09f8a903521c38d6e4c4200e0e1edcfc.tar.gz
anaconda-2e94beff09f8a903521c38d6e4c4200e0e1edcfc.tar.xz
anaconda-2e94beff09f8a903521c38d6e4c4200e0e1edcfc.zip
Change IsBeta to IsFinal
When doing composes pungi (and lorax) uses a flag --isfinal, to set a final release, otherwise it is considered a beta release by default. This patch makes the final vs beta more consistent with the composes.
Diffstat (limited to 'tests')
-rw-r--r--tests/pyanaconda_test/product_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/pyanaconda_test/product_test.py b/tests/pyanaconda_test/product_test.py
index f8b2e0c7c..5be51d373 100644
--- a/tests/pyanaconda_test/product_test.py
+++ b/tests/pyanaconda_test/product_test.py
@@ -21,7 +21,7 @@ class ProductTest(mock.TestCase):
# fake /tmp/product/.buildstamp file
self.BUGURL = 'http://bug.url'
- self.BETA = 'true'
+ self.FINAL = 'false'
self.ARCH = 'i386'
self.NAME = '__anaconda'
self.UUID = '123456.%s' % self.ARCH
@@ -30,12 +30,12 @@ class ProductTest(mock.TestCase):
self.FILE = \
"[Main]\n"\
"BugURL: %s\n"\
- "IsBeta: %s\n"\
+ "IsFinal: %s\n"\
"Arch: %s\n"\
"Product: %s\n"\
"UUID: %s\n"\
"Version: %s\n" % \
- (self.BUGURL, self.BETA, self.ARCH, self.NAME, self.UUID, self.VERSION)
+ (self.BUGURL, self.FINAL, self.ARCH, self.NAME, self.UUID, self.VERSION)
self.fs.open(self.FILENAME, 'w').write(self.FILE)
@@ -53,10 +53,10 @@ class ProductTest(mock.TestCase):
import pyanaconda.product
self.assertEqual(pyanaconda.product.bugUrl, self.BUGURL)
- def is_beta_test(self):
+ def is_final_test(self):
sys.modules['os'].access = mock.Mock(return_value=True)
import pyanaconda.product
- self.assertTrue(pyanaconda.product.isBeta)
+ self.assertFalse(pyanaconda.product.isFinal)
def product_arch_test(self):
sys.modules['os'].access = mock.Mock(return_value=True)