def test_score_is_yes_if_sum_of_new_hiv_positive_women_and_new_art_for_tdf_is_80_percent_that_for_AZT(self): df1_count = df2_count = 1 sum_df1 = 9 sum_df2 = 2 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio) self.assertEqual(result, YES)
def test_score_is_no_if_azt_cells_are_blank(self): df1_count = df2_count = 1 sum_df1 = 0 sum_df2 = 20 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio, False, True) self.assertEqual(result, NO)
def test_score_is_not_reporting_if_azt_or_tdf_cells_are_not_found(self): df1_count = df2_count = 0 sum_df1 = 0 sum_df2 = 0 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio, False, True) self.assertEqual(result, NOT_REPORTING)
def test_score_is_yes_if_sum_of_new_hiv_positive_women_and_new_art_for_tdf_is_zero_and_that_for_AZT_is_also_zero( self): df1_count = df2_count = 1 sum_df1 = 0 sum_df2 = 0 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio) self.assertEqual(result, YES)
def test_score_is_not_reporting_if_azt_or_tdf_cells_are_not_found(self): df1_count = df2_count = 0 sum_df1 = 0 sum_df2 = 0 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio, False, True) self.assertEqual(result, NOT_REPORTING)
def test_score_is_no_if_azt_cells_are_blank(self): df1_count = df2_count = 1 sum_df1 = 0 sum_df2 = 20 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio, False, True) self.assertEqual(result, NO)
def test_score_is_yes_if_sum_of_new_hiv_positive_women_and_new_art_for_tdf_is_zero_and_that_for_AZT_is_also_zero( self): df1_count = df2_count = 1 sum_df1 = 0 sum_df2 = 0 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio) self.assertEqual(result, YES)
def test_score_is_yes_if_sum_of_new_hiv_positive_women_and_new_art_for_tdf_is_80_percent_that_for_AZT( self): df1_count = df2_count = 1 sum_df1 = 9 sum_df2 = 2 ratio = 0.8 result = calculate_score(df1_count, df2_count, sum_df1, sum_df2, ratio) self.assertEqual(result, YES)