MCPcopy Create free account
hub / github.com/KLayout/klayout / test_1

Method test_1

testdata/python/rdbTest.py:48–57  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46
47 # RdbReference
48 def test_1(self):
49
50 ref = pya.RdbReference(pya.DCplxTrans(), 0)
51 self.assertEqual(ref.trans.__str__(), "r0 *1 0,0")
52 ref.trans = pya.DCplxTrans(5.0)
53 self.assertEqual(ref.trans.__str__(), "r0 *5 0,0")
54
55 self.assertEqual(ref.parent_cell_id, 0)
56 ref.parent_cell_id = 177
57 self.assertEqual(ref.parent_cell_id, 177)
58
59 # RdbCell, RdbCategory
60 def test_2(self):

Callers

nothing calls this directly

Calls 1

__str__Method · 0.80

Tested by

no test coverage detected