parameters: ()
docstring: Basic non-gui self-test.
docstring_summary: Basic non-gui self-test.
docstring_tokens: Basic non - gui self - test .
function: def test_basic():
      "Basic non-gui self-test."
      a = Sheet()
      for x in range(1, 11):
          for y in range(1, 11):
              if x == 1:
                  cell = NumericCell(y)
              elif y == 1:
                  cell = NumericCell(x)
              else:
                  c1 = cellname(x, 1)
                  c2 = cellname(1, y)
                  formula = "%s*%s" % (c1, c2)
                  cell = FormulaCell(formula)
              a.setcell(x, y, cell)
  ##    if os.path.isfile("sheet1.xml"):
  ##        print "Loading from sheet1.xml"
  ##        a.load("sheet1.xml")
      a.display()
      a.save("sheet1.xml")
function_tokens: def test_basic ( ) : a = Sheet ( ) for x in range ( 1 , 11 ) : for y in range ( 1 , 11 ) : if x == 1 : cell = NumericCell ( y ) elif y == 1 : cell = NumericCell ( x ) else : c1 = cellname ( x , 1 ) c2 = cellname ( 1 , y ) formula = "%s*%s" % ( c1 , c2 ) cell = FormulaCell ( formula ) a . setcell ( x , y , cell ) ##    if os.path.isfile("sheet1.xml"): ##        print "Loading from sheet1.xml" ##        a.load("sheet1.xml") a . display ( ) a . save ( "sheet1.xml" )