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

Method test_1

testdata/pymod/import_lay.py:38–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36class BasicTest(unittest.TestCase):
37
38 def test_1(self):
39
40 if not can_create_layoutview():
41 print("Skipped test as LayoutView cannot be instantiated")
42 return
43
44 lv = lay.LayoutView()
45 lv.resize(800, 600)
46 lv.zoom_box(db.DBox(-42, -17, 142, 117))
47 bx = lv.box()
48 self.assertEqual(str(bx), "(-42.09,-19.09;141.91,118.91)")
49
50 def test_2(self):
51

Callers

nothing calls this directly

Calls 6

strFunction · 0.85
can_create_layoutviewFunction · 0.70
LayoutViewMethod · 0.45
resizeMethod · 0.45
zoom_boxMethod · 0.45
boxMethod · 0.45

Tested by

no test coverage detected