From c5c5e7b89b638f119ed0bc3408e34ffd3479e0a8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 20 Jun 2013 11:17:30 +0200 Subject: [PATCH] remove requirement-finder tests - no need to test assignments and no wildcard support anymore Signed-off-by: Nico Schottelius --- cdist/test/execution_order/__init__.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/cdist/test/execution_order/__init__.py b/cdist/test/execution_order/__init__.py index d9804833..785b7ba8 100644 --- a/cdist/test/execution_order/__init__.py +++ b/cdist/test/execution_order/__init__.py @@ -31,7 +31,6 @@ from cdist.exec import local from cdist.core import manifest import cdist.context - import os.path as op my_dir = op.abspath(op.dirname(__file__)) fixtures = op.join(my_dir, 'fixtures') @@ -50,25 +49,6 @@ class ResolverTestCase(test.CdistTestCase): for o in self.objects: o.requirements = [] - def test_find_requirements_by_name_string(self): - requirements = ['__first/man', '__second/on-the', '__third/moon'] - required_objects = [self.object_index[name] for name in requirements] - # self.assertEqual(sorted(list(self.dependency_resolver.find_requirements_by_name(requirements))), - # sorted(required_objects)) - self.assertTrue(False) - - def test_find_requirements_by_name_pattern(self): - requirements = ['__first/*', '__second/*-the', '__third/moon'] - requirements_expanded = [ - '__first/child', '__first/dog', '__first/man', '__first/woman', - '__second/on-the', '__second/under-the', - '__third/moon' - ] - required_objects = [self.object_index[name] for name in requirements_expanded] - self.assertEqual(sorted(list(self.dependency_resolver.find_requirements_by_name(requirements))), - sorted(required_objects)) - self.assertTrue(False) - def test_dependency_resolution(self): first_man = self.object_index['__first/man'] second_on_the = self.object_index['__second/on-the']