(self)
| 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 | |
| 555 | # instantiate and register the library |
| 556 | tl = PCellTestLib() |
| 557 | |
| 558 | lib = pya.Library.library_by_name("PCellTestLib") |
| 559 | ly = pya.Layout(True) |
| 560 | ly.dbu = 0.01 |
| 561 | |
| 562 | param = { "w": 2.0, "h": 6.0, "l": pya.LayerInfo(5, 0) } |
| 563 | pcell_var = lib.layout().create_cell("Box", param) |
| 564 | pcell_var.name = "BOXVAR" |
| 565 | |
| 566 | cell = ly.create_cell("BOXVAR", "PCellTestLib") |
| 567 | |
| 568 | self.assertEqual(cell.begin_shapes_rec(ly.layer(5, 0)).shape().__str__(), "box (-100,-300;100,300)") |
| 569 | |
| 570 | def test_9(self): |
| 571 |
nothing calls this directly
no test coverage detected