def __getattribute__(self, name):

        print "Requested: %s" % name

        if name == "test_package" and self.td_error:
            return self._tier_test

        if name in ("expectations",
                    "assert_expectation",
                    "td_error",
                    "_tier_test",
                    "found_tiers"):
            return object.__getattribute__(self, name)

        if name in self.expectations:
            self.expectations[name]["count"] += 1

        if name == "test_package":
            def wrap(package, name):
                pass
        elif name in ("test_css_file", "test_js_file", "process"):
            def wrap(err, name, file_data):
                pass
        else:
            def wrap(err, pak):
                if isinstance(pak, ZipPackage) and pak.subpackage:
                    self.expectations[name]["subpackage"] += 1

        return wrap
Detects requests for validation tests and returns an
dataset/ETHPy150Open mozilla/app-validator/tests/test_content.py/MockTestEndpoint.__getattribute__