'Test that one OplogThread is capable of replicating to more than
one target.'

def test_many_targets(self):

    doc_managers = [DocManager(), DocManager(), DocManager()]
    self.opman.doc_managers = doc_managers
    self.opman.start()
    self.primary_conn['test']['test'].insert_one({'name': 'kermit', 'color': 'green'})
    self.primary_conn['test']['test'].insert_one({'name': 'elmo', 'color': 'firetruck    red'})
    assert_soon((lambda : (sum((len(d._search()) for d in doc_managers)) == 6)), 'OplogThread    should    be    able    to    replicate    to    multiple    targets')
    self.primary_conn['test']['test'].delete_one({'name': 'elmo'})
    assert_soon((lambda : (sum((len(d._search()) for d in doc_managers)) == 3)), 'OplogThread    should    be    able    to    replicate    to    multiple    targets')
    for d in doc_managers:
        self.assertEqual(d._search()[0]['name'], 'kermit')
