#Exercise some uniquification/grouping tricks
from Xml.Xslt import test_harness
sheet_1 = """\
"""
sheet_2 = """\
"""
source_1 = """\
one
two
three
one
three
two
two
one
"""
source_2 = source_1
source_x = """\
one
two
three
ein
drei
un
zwo
otu
"""
expected_1 = """\
onetwothree"""
expected_2 = expected_1
def Test(tester):
source = test_harness.FileInfo(string=source_1)
sheet = test_harness.FileInfo(string=sheet_1)
test_harness.XsltTest(tester, source, [sheet], expected_1,
title='generate-id/key techniques, case 1')
source = test_harness.FileInfo(string=source_2)
sheet = test_harness.FileInfo(string=sheet_2)
test_harness.XsltTest(tester, source, [sheet], expected_2,
title='generate-id/key techniques, case 2')
return