1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#!/usr/bin/python
from metagenerator import MyMetadata
def test1():
"""1 herd specified"""
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"""
metadata = MyMetadata()
metadata.set_herd(["python", "gnome"])
metadata.set_maintainer(["goofy@gentoo.org", "pythonhead@gentoo.org"],
["Goo Fi", "Rob Cakebread"],
["Maintainer one.", "Maintainer two"],
["person", "person"])
metadata.set_longdescription("This packages does X Y and Z.")
return metadata
|