def test_3( **kwds):
    from histogram.DictAttributeCont import AttributeCont
    attCont = AttributeCont()

    attCont.setAttribute( 'name', 'timmah!')
    attCont.setAttribute( 'unit', 'tons')

    passed = True
    attList = ['name', 'unit']
    acList = attCont.listAttributes()
    if acList != attList:
        passed = False
        log("listAtts() returned %s, should have been %s" %(acList, attList))
        
    return passed
def test_3(**kwds):
    from histogram.DictAttributeCont import AttributeCont
    attCont = AttributeCont()

    attCont.setAttribute('name', 'timmah!')
    attCont.setAttribute('unit', 'tons')

    passed = True
    attList = ['name', 'unit']
    acList = attCont.listAttributes()
    if acList != attList:
        passed = False
        log("listAtts() returned {0!s}, should have been {1!s}".format(
            acList, attList))

    return passed