13 lines
258 B
Python
13 lines
258 B
Python
|
import unittest
|
||
|
|
||
|
func = __import__("func")
|
||
|
|
||
|
class TestFunc(unittest.TestCase):
|
||
|
|
||
|
def test_func_empty_request(self):
|
||
|
resp, code = func.main({})
|
||
|
self.assertEqual(resp, "{}")
|
||
|
self.assertEqual(code, 200)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
unittest.main()
|