MCPcopy Index your code
hub / github.com/clips/pattern / test_column

Method test_column

test/test_db.py:941–950  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

939 print "pattern.db.Datasheet.columns"
940
941 def test_column(self):
942 # Assert DatasheetColumn object.
943 # It has a reference to the parent Datasheet, as long as it is not deleted from the datasheet.
944 v = db.Datasheet(rows=[[1,3],[2,4]])
945 column = v.columns[0]
946 column.insert(1, 0, default=None)
947 self.assertEqual(v, [[1,3], [0,None], [2,4]])
948 del v.columns[0]
949 self.assertTrue(column._datasheet, None)
950 print "pattern.db.DatasheetColumn"
951
952 def test_fields(self):
953 # Assert Datasheet with incomplete headers.

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected