def testCreateDifficultyMenu(self):
box = self.menu.createDifficultyMenu()
self.assertIsInstance(box, PyQt5.QtWidgets.QGroupBox)
for i in range(3):
try:
radio = box.layout().itemAt(i).widget()
self.assertIsInstance(radio, PyQt5.QtWidgets.QRadioButton)
self.assertEqual(radio.id, i + 1)
except Exception:
self.fail('Radio error')
fake = box.layout().itemAt(4).widget()
self.assertFalse(fake)
singleplayer_test.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录