Basic non-gui self-test.
()
| 795 | |
| 796 | |
| 797 | def test_basic(): |
| 798 | "Basic non-gui self-test." |
| 799 | a = Sheet() |
| 800 | for x in range(1, 11): |
| 801 | for y in range(1, 11): |
| 802 | if x == 1: |
| 803 | cell = NumericCell(y) |
| 804 | elif y == 1: |
| 805 | cell = NumericCell(x) |
| 806 | else: |
| 807 | c1 = cellname(x, 1) |
| 808 | c2 = cellname(1, y) |
| 809 | formula = "%s*%s" % (c1, c2) |
| 810 | cell = FormulaCell(formula) |
| 811 | a.setcell(x, y, cell) |
| 812 | ## if os.path.isfile("sheet1.xml"): |
| 813 | ## print "Loading from sheet1.xml" |
| 814 | ## a.load("sheet1.xml") |
| 815 | a.display() |
| 816 | a.save("sheet1.xml") |
| 817 | |
| 818 | def test_gui(): |
| 819 | "GUI test." |
nothing calls this directly
no test coverage detected