def wait_for_async(self, method, attribute, count):
        i = 0
        while i < RESULTS_TIMEOUT:
            self.check._process_results()
            if len(getattr(self.check, attribute)) >= count:
                return getattr(self.check, method)()
            time.sleep(1)
            i += 1
        raise Exception("Didn't get the right count of service checks in time, {0}/{1} in {2}s: {3}"
                        .format(len(getattr(self.check, attribute)), count, i,
                                getattr(self.check, attribute)))
Create empty .DBF file using current structure.
dataset/ETHPy150Open serverdensity/sd-agent/tests/checks/integration/test_http_check.py/HTTPCheckTest.wait_for_async--crossover with--dataset/ETHPy150Open kennethreitz/tablib/tablib/packages/dbfpy3/dbfnew.py/dbf_new.write