@defer.inlineCallbacks
    def test_RemoveOne(self):
        docs = [{'x': 42}, {'x': 123}]
        yield self.coll.insert(docs)
        yield self.coll.remove({}, single=True)

        remaining = yield self.coll.find()
        self.assertEqual(len(remaining), 1)
        self.assertTrue(remaining[0] in docs)
dataset/ETHPy150Open twisted/txmongo/tests/test_queries.py/TestRemove.test_RemoveOne/original