'Compare bulk.execute()[\'upserts\'] to expected value.
Like: {\'index\': 0, \'_id\': ObjectId()}'

def assertEqualUpsert(self, expected, actual):

    self.assertEqual(expected['index'], actual['index'])
    if (expected['_id'] == '...'):
        self.assertTrue(('_id' in actual))
    else:
        self.assertEqual(expected['_id'], actual['_id'])
