Пример #1
0
 def test_get_disease_list_Male(self):
     """Test when user is a male input age, sleep hour, and application can suggest disease correctly."""
     get_disease = get_disease_list(20, "Male", 9)
     Disease = [
         'Diabetes mellitus (DM) /Impaired glucose tolerance (IGT)',
         'Hypersomnia'
     ]
     self.assertEqual(get_disease, Disease)
Пример #2
0
 def test_get_disease_list_Female(self):
     """Test when user is a female input age, sleep hour, and application can suggest disease correctly."""
     get_disease = get_disease_list(67, "Female", 4)
     Disease = ['Depression', 'Colorectal cancer']
     self.assertEqual(get_disease, Disease)
Пример #3
0
 def test_get_disease_list_Colorectal(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Colorectal cancer"
     get_disease = get_disease_list(20, "Male", 4)
     self.assertTrue(Disease in get_disease)
Пример #4
0
 def test_get_disease_list_Hypersomnia(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Hypersomnia"
     get_disease = get_disease_list(20, "Male", 9)
     self.assertTrue(Disease in get_disease)
Пример #5
0
 def test_get_disease_list_REM(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "REM Sleep Disorder"
     get_disease = get_disease_list(55, "Male", 4)
     self.assertTrue(Disease in get_disease)
Пример #6
0
 def test_get_disease_list_IGT(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Diabetes mellitus (DM) /Impaired glucose tolerance (IGT)"
     get_disease = get_disease_list(55, "Male", 4)
     self.assertTrue(Disease in get_disease)
Пример #7
0
 def test_get_disease_list_CHD_Male(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Coronary heart disease (CHD)"
     get_disease = get_disease_list(45, "Male", 4)
     self.assertTrue(Disease in get_disease)
Пример #8
0
 def test_get_disease_list_Infertility(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Infertility"
     get_disease = get_disease_list(67, "Female", 10)
     self.assertTrue(Disease in get_disease)
Пример #9
0
 def test_get_disease_list_Depression(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Depression"
     get_disease = get_disease_list(67, "Female", 4)
     self.assertTrue(Disease in get_disease)
Пример #10
0
 def test_get_disease_list_Breast_cancer(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Disease = "Breast cancer risk"
     get_disease = get_disease_list(65, "Female", 11)
     self.assertTrue(Disease in get_disease)
Пример #11
0
 def test_get_disease_list_Hypertension_old(self):
     """Test when user input age, gender, sleep hour, and application can suggest disease correctly."""
     Hypertension = 'Hypertension'
     get_disease = get_disease_list(65, "Female", 10)
     self.assertTrue(Hypertension in get_disease)