Coverage for datastorage_test.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.5.1, created at 2024-05-29 20:53 +0000

1import unittest 

2 

3import datastorage 

4 

5class TestDataStorage(unittest.TestCase): 

6 

7 def test_create_patient(self): 

8 ds = datastorage.DataStorage() 

9 result = ds.create_patient("David Herzig") 

10 self.assertTrue(result >= 0) 

11 

12 def test_create_experiment(self): 

13 ds = datastorage.DataStorage() 

14 result = ds.create_patient("My Cool Experiment") 

15 self.assertTrue(result >= 0) 

16 

17if __name__ == '__main__': 

18 unittest.main()