def METHOD_NAME(self):
    """
    Test that archiving views works
    """
    dummy_view = {'_id':'_design/foo', 'language': 'javascript','views':{
                    'bar':{'map':"function(doc) {if (doc.foo) {emit(doc.int, 1);}}", 'reduce':'_sum'}
                    }
                }
    archive_view = {'_id':'_design/foo', 'language': 'javascript','views':{
                    'bar':{'map':"function(doc) {emit(doc.key, doc.value);}", 'reduce':'_sum'}
                    }
                }
    seed_db = self.server.connectDatabase(self.seedname)
    seed_db.commit(dummy_view)
    # Need to have the timing long enough so the data isn't archived by accident
    self.timing = {'archive':timedelta(seconds=1000), 'expire':timedelta(seconds=2000)}
    self.db = RotatingDatabase(dbname = self.dbname, url = self.couchURL, views=['foo/bar'],
                            archivename = self.arcname, timing = self.timing)
    self.db.archive_db.commitOne(archive_view)
    runs = 5
    docs = 5
    for run in range(runs):
        for i in range(docs):
            self.db.queue({'foo':'bar', 'int': i, 'run': run})
        self.db.commit()
        self.db._rotate()
    self.db._archive()
    view_result = self.db.archive_db.loadView('foo','bar')
    arch_sum = view_result['rows'][0]['value']
    self.assertEqual(arch_sum, runs * docs)