summaryrefslogtreecommitdiff
blob: 73b5072f970c6218b34ef1eb5fabf792aee797bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python

from metagenerator import MyMetadata


def test1():
    """1 maintainer"""
    metadata = MyMetadata()
    metadata.set_maintainer(["<pythonhead@gentoo.org>"], 
                            ["Rob Cakebread"], 
                            ["Maintainer description."],
                            ["person"])
    return metadata 
    
def test2():
    """2 maintainers, longdesc"""
    metadata = MyMetadata()
    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