<|file_name|>proptest.py<|end_file_name|><｜fim▁begin｜>#!/usr/local/bin/python3

class TestClass(object):

    def foo():
        doc = "The foo property."
        def fget(self):
            return self._foo
        def fset(self, value):
            self._foo = value
        def fdel(self):
            del self._foo
        return locals()

    foo = property(**foo())

    def bar():
        doc = "The bar property."
        def fget(self):
            <|fim_middle|>

        def fset(self, value):
            self._bar = value
        def fdel(self):
            del self._bar
        return locals()

    bar = property(**bar())

    def __init__(self, foo, bar):
        self.foo = "foo"
        self.bar = "bar"
        

    def test_method(self, attr):

        if attr == 1:
            prop = self.foo
        else:
            prop = self.bar

        print(prop)
        prop = 'TADA!'

tc = TestClass(1,2)

print(tc.foo)
print(tc.bar)
tc.test_method('foo')
#print(tc.foo)
#print(dir(tc))
<｜fim▁end｜>
            return self._bar