summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'metagen/meta_unittest.py')
-rw-r--r--metagen/meta_unittest.py34
1 files changed, 3 insertions, 31 deletions
diff --git a/metagen/meta_unittest.py b/metagen/meta_unittest.py
index 4af902c..73b5072 100644
--- a/metagen/meta_unittest.py
+++ b/metagen/meta_unittest.py
@@ -4,45 +4,17 @@ from metagenerator import MyMetadata
def test1():
- """1 herd specified"""
+ """1 maintainer"""
metadata = MyMetadata()
- metadata.set_herd(["python"])
- return metadata
-
-def test2():
- """No herd specified, 1 maintainer"""
- metadata = MyMetadata()
- metadata.set_herd()
metadata.set_maintainer(["<pythonhead@gentoo.org>"],
["Rob Cakebread"],
["Maintainer description."],
["person"])
return metadata
-def test3():
- """1 herd, 1 maintainer"""
- metadata = MyMetadata()
- metadata.set_herd(["python"])
- metadata.set_maintainer(["<pythonhead@gentoo.org>"],
- ["Rob Cakebread"],
- ["Maintainer description."],
- ["person"])
- return metadata
-
-def test4():
- """2 herds, 1 maintainer"""
- metadata = MyMetadata()
- metadata.set_herd(["python", "gnome"])
- metadata.set_maintainer(["pythonhead@gentoo.org"],
- ["Rob Cakebread"],
- ["Maintainer description."],
- ["person"])
- return metadata
-
-def test5():
- """2 herds, 2 maintainers, longdesc"""
+def test2():
+ """2 maintainers, longdesc"""
metadata = MyMetadata()
- metadata.set_herd(["python", "gnome"])
metadata.set_maintainer(["goofy@gentoo.org", "pythonhead@gentoo.org"],
["Goo Fi", "Rob Cakebread"],
["Maintainer one.", "Maintainer two"],