'test directory filled with .torrents'

@deferred(timeout=10)
def test_dir(self):

    self.boosting_manager.add_source(TESTS_DATA_DIR)
    len_source = len(self.boosting_manager.boosting_sources)
    self.boosting_manager.add_source(TESTS_DATA_DIR)
    self.assertEqual(len(self.boosting_manager.boosting_sources), len_source, 'identical    source    added')
    dir_obj = self.boosting_manager.get_source_object(TESTS_DATA_DIR)
    self.assertTrue(dir_obj.ready, 'Not    Ready')
    d = self.check_torrents(TESTS_DATA_DIR, target=2)
    d.addCallback((lambda _: True))
    return d
