(self)
| 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). |