summaryrefslogtreecommitdiff
path: root/test/test_cerbero_packages_package.py
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-23 11:09:53 -0700
committerAndoni Morales Alastruey <ylatuya@gmail.com>2012-04-23 17:21:15 -0700
commit89b06b56fcddbd7776151c7c6cfbbefcf5d70e1b (patch)
tree58fbca601aaa548d8ab22ff80b5964d2a4c2942a /test/test_cerbero_packages_package.py
parenta34ca54bf43ab03828ae775fe252fbf4e2f470f1 (diff)
wix: make wix packaging work again
Diffstat (limited to 'test/test_cerbero_packages_package.py')
-rw-r--r--test/test_cerbero_packages_package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_cerbero_packages_package.py b/test/test_cerbero_packages_package.py
index 78353330..5b2197c7 100644
--- a/test/test_cerbero_packages_package.py
+++ b/test/test_cerbero_packages_package.py
@@ -21,6 +21,7 @@ import unittest
import tempfile
from cerbero.config import Platform, Distro, DistroVersion
+from cerbero.packages import PackageType
from test.test_packages_common import Package1, Package4, MetaPackage
from test.test_build_common import create_cookbook, add_files
from test.test_packages_common import create_store
@@ -46,6 +47,15 @@ class PackageTest(unittest.TestCase):
def tearDown(self):
shutil.rmtree(self.tmp)
+ def testPackageMode(self):
+ self.assertEquals(self.linuxpackage.name, 'gstreamer-test1')
+ self.assertEquals(self.linuxpackage.shortdesc, 'GStreamer Test')
+ self.linuxpackage.set_mode(PackageType.DEVEL)
+ self.assertEquals(self.linuxpackage.package_mode, PackageType.DEVEL)
+ self.assertEquals(self.linuxpackage.name, 'gstreamer-test1-devel')
+ self.assertEquals(self.linuxpackage.shortdesc,
+ 'GStreamer Test (Development Files)')
+
def testParseFiles(self):
self.assertEquals(self.win32package._recipes_files['recipe1'],
['misc', 'libs', 'bins'])