From 35b94c3a44f4b9d4f37ff5965cd3c6d5d04a1910 Mon Sep 17 00:00:00 2001 From: Anton Hansson <antha652@student.liu.se> Date: Fri, 30 Sep 2022 20:57:55 +0000 Subject: [PATCH] Update tests/router.py --- tests/router.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/router.py diff --git a/tests/router.py b/tests/router.py new file mode 100644 index 0000000..f9ef825 --- /dev/null +++ b/tests/router.py @@ -0,0 +1,17 @@ + +import unittest + +from my_sum import sum + + +class TestSum(unittest.TestCase): + def test_list_int(self): + """ + Test that it can sum a list of integers + """ + data = [1, 2, 3] + result = sum(data) + self.assertEqual(result, 6) + +if __name__ == '__main__': + unittest.main() -- GitLab