Attempting to integrate a basic test suite

This commit is contained in:
2019-01-02 10:06:19 -06:00
parent da3374a484
commit 87b420e21e
3 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import sys
import unittest
import application
class py2exeTestCase(unittest.TestCase):
@unittest.skipUnless(sys.version[0] == "2", "this only fails under Python 2")
def test_application_not_unicode(self):
""" Testing if some strings present in application have not changed to unicode. """
self.assertIsInstance(application.name, str)
self.assertIsInstance(application.author, str)
self.assertIsInstance(application.authorEmail, str)
self.assertIsInstance(application.version, str)
self.assertIsInstance(application.url, str)
if __name__ == "__main__":
unittest.main()