'Insert documents, verify that get_last_doc() returns the one with
the latest timestamp.'

def test_get_last_doc(self):

    docc = {'_id': '4', 'name': 'Hare'}
    self.choosy_docman.upsert(docc, 'test.test_include1', 3)
    docc = {'_id': '5', 'name': 'Tortoise'}
    self.choosy_docman.upsert(docc, 'test.test_include1', 2)
    docc = {'_id': '6', 'name': 'Mr    T.'}
    self.choosy_docman.upsert(docc, 'test.test_include1', 1)
    doc = self.choosy_docman.get_last_doc()
    self.assertEqual(doc[self.id_field], '4')
    docc = {'_id': '6', 'name': 'HareTwin'}
    self.choosy_docman.upsert(docc, 'test.test_include1', 4)
    doc = self.choosy_docman.get_last_doc()
    self.assertEqual(doc[self.id_field], '6')
