]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add tests for get_flavor()
authorZack Cerza <zack@redhat.com>
Wed, 20 May 2015 21:11:14 +0000 (15:11 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 20 May 2015 21:37:04 +0000 (15:37 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/test/task/test_install.py

index 9233554f58ea79c6ef0d584e32106156de51e440..93b1c1e6e033688a1d6f808af4be7e464618408f 100644 (file)
@@ -40,3 +40,19 @@ class TestInstall(object):
         config = Mock()
         config.extras = True
         install.verify_package_version(Mock(), config, Mock())
+
+    def test_get_flavor_default(self):
+        config = dict()
+        assert install.get_flavor(config) == 'basic'
+
+    def test_get_flavor_simple(self):
+        config = dict(
+            flavor='notcmalloc'
+        )
+        assert install.get_flavor(config) == 'notcmalloc'
+
+    def test_get_flavor_valgrind(self):
+        config = dict(
+            valgrind=True
+        )
+        assert install.get_flavor(config) == 'notcmalloc'