summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-06-10 16:20:02 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2014-11-14 14:47:21 +0200
commit08d6aa85e81d03690a73f48a85107f6dc874a222 (patch)
tree7a123cdfb528ad1b8ec93bfd97f29f596546e766
parent61185ec85098790f6122fc7ea9852b6dcae16cd7 (diff)
downloadgit-buildpackage-08d6aa85e81d03690a73f48a85107f6dc874a222.tar.gz
git-buildpackage-08d6aa85e81d03690a73f48a85107f6dc874a222.tar.bz2
git-buildpackage-08d6aa85e81d03690a73f48a85107f6dc874a222.zip
rpm tests: remove RepoManifest.add_project()
This functionality is moved to the rpm testdata submodule. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r--tests/component/rpm/__init__.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/component/rpm/__init__.py b/tests/component/rpm/__init__.py
index 5498666b..dea1c09f 100644
--- a/tests/component/rpm/__init__.py
+++ b/tests/component/rpm/__init__.py
@@ -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'):