#!/usr/bin/env python # -*- coding: utf-8 -*- """ Simple example to create cells """ from types import CellType if __name__ == "__main__": cell_obj = CellType(1) assert cell_obj.cell_contents == 1 cell_obj = CellType() try: a = cell_obj.cell_contents except ValueError: pass else: raise ValueError("No exception was raised when trying to access the " "contents of an empty cell")