コード例 #1
0
 def test_on_haart_4(self):
     """Assert that if mother was supposed to take HAART, and reason for HAART given is valid"""
     self.data['on_arv_since'] = YES
     self.data['on_arv_reason'] = 'pmtct bf'
     form = MaternalArvPostForm(data=self.data)
     self.assertTrue(form.is_valid())
コード例 #2
0
 def test_on_haart_3(self):
     """Assert that mother was not supposed to take HAART and no reason for taking HAART
     is provided then valid"""
     form = MaternalArvPostForm(data=self.data)
     self.assertTrue(form.is_valid())