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?
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?
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?
def test_extendheader_empty(): table1 = (('foo',),) table2 = extendheader(table1, ['bar', 'baz']) expect2 = (('foo', 'bar', 'baz'),) ieq(expect2, table2)
def test_extendheader_empty(): table1 = (('foo', ), ) table2 = extendheader(table1, ['bar', 'baz']) expect2 = (('foo', 'bar', 'baz'), ) ieq(expect2, table2)
def test_extendheader_empty(): table1 = (("foo",),) table2 = extendheader(table1, ["bar", "baz"]) expect2 = (("foo", "bar", "baz"),) ieq(expect2, table2)