'Ensure we can properly insert into Mongo via DocManager.'

def test_upsert(self):

    docc = {'_id': '1', 'name': 'John'}
    self.choosy_docman.upsert(docc, *TESTARGS)
    res = list(self._search())
    self.assertEqual(len(res), 1)
    for doc in res:
        self.assertEqual(doc['_id'], '1')
        self.assertEqual(doc['name'], 'John')
    docc = {'_id': '1', 'name': 'Paul'}
    self.choosy_docman.upsert(docc, *TESTARGS)
    res = list(self._search())
    self.assertEqual(len(res), 1)
    for doc in res:
        self.assertEqual(doc['_id'], '1')
        self.assertEqual(doc['name'], 'Paul')
