Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_2(self):
app = QtWidgets.QApplication([ "progname" ])
q = QtSvg.QSvgWidget()
def test_2(self):
a = QtWidgets.QAction(None)
a.text = "myaction"
self.assertEqual(a.text, "myaction")
self.trg = 0
a.triggered = self.onTrigger
a.trigger()
self.assertEqual(self.trg, 17)
a.trigger()
self.assertEqual(self.trg, 34)
def test_1(self):
self.assertEqual("QAction" in QtWidgets.__all__, True)