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.

24 lines
782 B

import unittest
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from ui import VendorResultsWidget
app = QApplication(sys.argv)
vendor_results_widget = QWidget()
vendor_results_ui = VendorResultsWidget.Ui_VendorResultsWidget()
vendor_results_ui.setupUi(vendor_results_widget)
class VendorResultsWidgetTests(unittest.TestCase):
def test_defaults(self):
'''Test the defaults'''
self.assertEqual(vendor_results_ui.status_label.text(),"Success")
self.assertEqual(vendor_results_ui.vendor_label.text(),"Bioone")
def test_button(self):
self.assertEqual(vendor_results_ui.collapse_button.text(), "Collapse")
self.assertEqual(vendor_results_ui.expand_button.text(), "Expand")
if __name__ == '__main__':
unittest.main()