Skip to content
Snippets Groups Projects
Commit 35b94c3a authored by Anton Hansson's avatar Anton Hansson :ghost:
Browse files

Update tests/router.py

parent 4e9e0a0e
No related branches found
No related tags found
No related merge requests found
Pipeline #76564 passed
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()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment