def test_lconf_structure_classes23_expect_failure(): """ Tests: test_lconf_structure_classes23_expect_failure """ print('::: TEST: test_lconf_structure_classes23_expect_failure()') obj_ = ListOT(('a', 'b', 'c'), [('11', '22', '33')]) obj_.replace_column_names(('a', 'b', 'b'))
def test_lconf_structure_classes28(): """ Tests: test_lconf_structure_classes28 """ print('::: TEST: test_lconf_structure_classes28()') obj_ = ListOT(('a', 'b', 'c'), [('11', '22', '33'), ('111', '222', '333')]) values_column_a = obj_.this_column_values('a') obj_.replace_column_names(('new a', 'new b', 'new c')) eq_(obj_.column_names, ('new a', 'new b', 'new c'), msg=None) eq_(values_column_a, ['11', '111'], msg=None)
def test_lconf_structure_classes21(): """ Tests: test_lconf_structure_classes21 """ print('::: TEST: test_lconf_structure_classes21()') obj_ = ListOT(('a', 'b', 'c'), [('11', '22', '33')]) eq_(obj_.column_names, ('a', 'b', 'c'), msg=None) obj_.replace_column_names(('new a', 'new b', 'new c')) eq_(obj_.column_names, ('new a', 'new b', 'new c'), msg=None) eq_(obj_[0], ('11', '22', '33'), msg=None)