Files
learn/frontend/sphinx/tests/test_button.py
Robert Tice e73dc9c8a5 Adding test suite for widget rst parser.
Also splitting github actions into multiple workflows to make it
easier to see which test fails.
2020-11-19 16:57:26 -05:00

15 lines
586 B
Python

import unittest
from widget.button import Button, button_dictionary
class TestButton(unittest.TestCase):
def test_constructor(self):
button = Button("run_button")
self.assertEqual(button.name, button_dictionary["run_button"]["name"], msg="button name != dictionary lookup")
self.assertEqual(button.title, button_dictionary["run_button"]["title"], msg="button title != dictionary lookup")
self.assertEqual(button.mode, button_dictionary["run_button"]["mode"], msg="button mode != dictionary lookup")
if __name__ == '__main__':
unittest.main()