rpm tests: remove RepoManifest.add_project()
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 10 Jun 2014 13:20:02 +0000 (16:20 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:47:21 +0000 (14:47 +0200)
This functionality is moved to the rpm testdata submodule.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tests/component/rpm/__init__.py

index 5498666baf093319e14f77651f5dea466784a6e7..dea1c09f18fd521e761673bc15d53af4f4fb79fd 100644 (file)
@@ -43,17 +43,6 @@ class RepoManifest(object):
         else:
             self._doc.appendChild(self._doc.createElement("gbp-test-manifest"))
 
-    def add_project(self, name, branches):
-        """Add new project to the manifest"""
-        prj_e = self._doc.createElement('project')
-        prj_e.setAttribute('name', name)
-        for branch, revision in branches.iteritems():
-            br_e = self._doc.createElement('branch')
-            br_e.setAttribute('name', branch)
-            br_e.setAttribute('revision', revision)
-            prj_e.appendChild(br_e)
-        self._doc.firstChild.appendChild(prj_e)
-
     def projects_iter(self):
         """Return an iterator over projects"""
         for prj_e in self._doc.getElementsByTagName('project'):