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

Method test_7

testdata/python/dbPCells.py:540–551  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

538
539
540 def test_7(self):
541
542 # instantiate and register the library
543 tl = PCellTestLib()
544
545 ly = pya.Layout(True)
546 ly.dbu = 0.01
547
548 param = { "w": 4.0, "h": 8.0, "l": pya.LayerInfo(4, 0) }
549 cell = ly.create_cell("Box", "PCellTestLib", param)
550
551 self.assertEqual(ly.begin_shapes(cell, ly.layer(4, 0)).shape().__str__(), "box (-200,-400;200,400)")
552
553 def test_8(self):
554

Callers

nothing calls this directly

Calls 6

LayoutMethod · 0.80
__str__Method · 0.80
PCellTestLibClass · 0.70
create_cellMethod · 0.45
shapeMethod · 0.45
layerMethod · 0.45

Tested by

no test coverage detected