def test_iteration_empty_db(self):
        """
        Test the null condition, no entries in the database.
        """
        db = self.db_class(leveldb.Options(), self.db_path, create_if_missing=True)
        for _ in db:
            self.fail("shouldn't happen")
        db.close()

        Test the null condition, no entries in the database.
        
pymclevel/test_leveldb.py