__author__ = 'NovikovII'

from model.group import Group
import random
import string


constant  = [
    Group(name="name1", header="header1", footer="footer1"),
]

def random_string(prefix, maxlen):
    symbols = string.ascii_letters + string.digits #+ string.punctuation + " "*10
    return prefix + "".join([random.choice(symbols) for i in range(random.randrange(maxlen))])

testdata = [
    Group(name=name, header=header, footer=footer)
    for name in ["", random_string("name", 10)]
    for header in ["", random_string("header", 20)]
    for footer in ["", random_string("footer", 20)]
]

# testdata = [Group(name="", header="", footer="")] + [
#     Group(name=random_string("name", 10), header=random_string("header", 20), footer=random_string("footer", 20))
#     for i in range(n)
# ]

#testdata = [Group(name="namea @RM&j ", header="header!4YJ,mAnXC,xfae B", footer="footerfQ 8C+THgLR#|")]
#testdata = [Group(name="", header="header/IPWt5D'_<Q", footer="")]
# testdata = [Group(name="", header="", footer="")] + [
#     Group(name=random_string("name", 10), header=random_string("header", 20), footer=random_string("footer", 20))
#     for i in range(5)
# ]

