So here is a pretty simple script im running from an webservice:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
test=int(sys.argv[1])+int(sys.argv[2])
print(test)
and now I want to write an Unittest script to test this script, but I dont know how I should pass the 2 required arguments inside a unittest function. Here is my current code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
import ExecuteExternal
class TestUnittest(unittest.TestCase):
def test(self):
self.assertTrue(ExecuteExternal, "5", "5"==10)
if __name__ == '__main__':
unittest.main()
I did search here in the forum but was not able to find an answer