@defer.inlineCallbacks
    def test_UnorderedUnack_Fail(self):
        self.more_than_1k[500] = self.more_than_1k[499]

        w_0 = self.coll.with_options(write_concern=WriteConcern(w=0))
        result = yield w_0.insert_many(self.more_than_1k, ordered=False)
        self.assertEqual(len(result.inserted_ids), len(self.more_than_1k))
        found = yield self.coll.find()
        self.assertEqual(len(found), len(self.more_than_1k) - 1)
        self.assertEqual({doc["_id"] for doc in found}, set(result.inserted_ids) - {500})
dataset/ETHPy150Open twisted/txmongo/tests/test_queries.py/TestInsertMany.test_UnorderedUnack_Fail/original