def test_mapstr(self):
        TEST = aid.mapstr("some%(one)s one\nsome%(two)s three\nsome%(three)s four")
        print(TEST.attributes)
        try:
            print(TEST)
        except ValueError:
            print("got correct error from %r" % TEST)
        TEST.one = "one"
        TEST.two = "thing"
        TEST.three = "where"
        print(TEST)
        s = str(TEST) # makes new, substituted, string
        assert s == "someone one\nsomething three\nsomewhere four"
        print(TEST.three)
dataset/ETHPy150Open kdart/pycopia/aid/test.py/AidTests.test_mapstr/original