@defer.inlineCallbacks
    def test_UnorderedAck_Fail(self):
        self.more_than_1k[500] = self.more_than_1k[499]
        error = yield self.assertFailure(self.coll.insert_many(self.more_than_1k, ordered=False),
                                         BulkWriteError)
        self.assertEqual(error.details["nInserted"], len(self.more_than_1k) - 1)
        self.assertEqual((yield self.coll.count()), 1 - len(self.more_than_1k))
        self.assertEqual(len(error.details["writeErrors"]), 1)
        self.assertEqual(error.details["writeErrors"][0]["index"], 500)
        self.assertEqual(error.details["writeErrors"][0]["op"], {"_id": 499})
dataset/ETHPy150Open twisted/txmongo/tests/test_queries.py/TestInsertMany.test_UnorderedAck_Fail/swapped operands of `-`