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

Method test_copy

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

Source from the content-addressed store, hash-verified

999 print "pattern.db.Datasheet.slice()"
1000
1001 def test_copy(self):
1002 # Assert Datasheet.copy().
1003 v = db.Datasheet([[1,2,3], [4,5,6], [7,8,9]])
1004 self.assertTrue(v.copy(), [[1,2,3], [4,5,6], [7,8,9]])
1005 self.assertTrue(v.copy(rows=[0]), [[1,2,3]])
1006 self.assertTrue(v.copy(rows=[0], columns=[0]), [[1]])
1007 self.assertTrue(v.copy(columns=[0]), [[1], [4], [7]])
1008 print "pattern.db.Datasheet.copy()"
1009
1010 def test_map(self):
1011 # Assert Datasheet.map() (in-place).

Callers

nothing calls this directly

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected