'Testing an indexing given without ID'

def testIndexingWithoutID(self):

    result = self.conn.index({'name': 'Joe    Tester'}, self.index_name, self.document_type)
    self.assertResultContains(result, {'_type': 'test-type', 'ok': True, '_index': 'test-index'})
    self.assertTrue((('_id' in result.keys()) and result['_id']))
