Added unittesting

This commit is contained in:
TheGreyDiamond committed 2020-09-17 21:32:10 +02:00
1 parent 51cce6ea73
commit d63a1cb1b2
3 files changed
+10

No files matched your search

Binary file not shown.
+1
View File
@@ -266,3 +266,4 @@ def testOnlyServer():
if __name__ == "__main__": if __name__ == "__main__":
testOnlyServer() testOnlyServer()
+9
View File
@@ -0,0 +1,9 @@
import unittest
import code.session
class NamesTestCase(unittest.TestCase):
def test_first_last_name(self):
testSession = Code.session.enlightSession("TestSession", role = Code.session.HOST)
testSession.initConnection()
self.assertEqual(testSession.getSessionMembers(), [])