CS4820-Winter2020 student project to create a COUNTER SUSHI R5 harvester and related functionality app for Windows and Mac
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
607 B

import unittest
import sys
from PyQt5.QtWidgets import QApplication, QDialog
from ui import MessageDialog
app = QApplication(sys.argv)
message_dialog = QDialog()
message_dialog_ui = MessageDialog.Ui_message_dialog()
message_dialog_ui.setupUi(message_dialog)
class MessageDialogTest(unittest.TestCase):
def test_defaults(self):
'''Test the defaults'''
self.assertEqual(message_dialog_ui.message_label.text(),"Message!")
def test_button(self):
okWidget = message_dialog_ui.buttonBox.Ok
self.assertIsNotNone(okWidget)
if __name__ == '__main__':
unittest.main()