Exemple #1
0
def test_extendheader():

    table1 = (('foo', ), ('a', 1, True), ('b', 2, False))
    table2 = extendheader(table1, ['bar', 'baz'])
    expect2 = (('foo', 'bar', 'baz'), ('a', 1, True), ('b', 2, False))
    ieq(expect2, table2)
    ieq(expect2, table2)  # can iterate twice?
Exemple #2
0
def test_extendheader():

    table1 = (("foo",), ("a", 1, True), ("b", 2, False))
    table2 = extendheader(table1, ["bar", "baz"])
    expect2 = (("foo", "bar", "baz"), ("a", 1, True), ("b", 2, False))
    ieq(expect2, table2)
    ieq(expect2, table2)  # can iterate twice?
Exemple #3
0
def test_extendheader():

    table1 = (('foo',),
              ('a', 1, True),
              ('b', 2, False))
    table2 = extendheader(table1, ['bar', 'baz'])
    expect2 = (('foo', 'bar', 'baz'),
               ('a', 1, True),
               ('b', 2, False))
    ieq(expect2, table2)
    ieq(expect2, table2)  # can iterate twice?
Exemple #4
0
def test_extendheader_empty():

    table1 = (('foo',),)
    table2 = extendheader(table1, ['bar', 'baz'])
    expect2 = (('foo', 'bar', 'baz'),)
    ieq(expect2, table2)
Exemple #5
0
def test_extendheader_empty():

    table1 = (('foo', ), )
    table2 = extendheader(table1, ['bar', 'baz'])
    expect2 = (('foo', 'bar', 'baz'), )
    ieq(expect2, table2)
Exemple #6
0
def test_extendheader_empty():

    table1 = (("foo",),)
    table2 = extendheader(table1, ["bar", "baz"])
    expect2 = (("foo", "bar", "baz"),)
    ieq(expect2, table2)