def flush_tests(self):
    self.targets_file.write((targets_cfg.unittests_template % self.tests_cfg))
    self.tests_cfg = ''
def flush_tests(self):
    self.targets_file.write((targets_cfg.unittests_template % self.tests_cfg))
    self.tests_cfg = 