Coverage for datastorage_test.py: 100%
13 statements
« prev ^ index » next coverage.py v7.5.1, created at 2024-05-29 20:53 +0000
« prev ^ index » next coverage.py v7.5.1, created at 2024-05-29 20:53 +0000
1import unittest
3import datastorage
5class TestDataStorage(unittest.TestCase):
7 def test_create_patient(self):
8 ds = datastorage.DataStorage()
9 result = ds.create_patient("David Herzig")
10 self.assertTrue(result >= 0)
12 def test_create_experiment(self):
13 ds = datastorage.DataStorage()
14 result = ds.create_patient("My Cool Experiment")
15 self.assertTrue(result >= 0)
17if __name__ == '__main__':
18 unittest.main()