def test_dame_gender_dame_accuracy_score_dame(self): g = Gender() score1 = g.accuracy_score_dame([1, 1], [1, 1]) self.assertEqual(score1, 1) score2 = g.accuracy_score_dame([1, 1, 1, 0], [1, 1, 2, 0]) self.assertEqual(score2, 0.75) score3 = g.accuracy_score_dame([1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 2, 1]) self.assertEqual(score3, 1) score4 = g.accuracy_score_dame( [1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1], [1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1]) self.assertEqual(score4, 1)
def test_dame_gender_dame_accuracy_score_dame_method_returns_correct_result( self): g = Gender() score1 = g.accuracy_score_dame([1, 1], [1, 1]) self.assertEqual(score1, 1) score2 = g.accuracy_score_dame([1, 1, 1, 0], [1, 1, 2, 0]) self.assertEqual(score2, 0.75) score3 = g.accuracy_score_dame([1, 1, 1, 1, 2, 1], [1, 1, 1, 1, 2, 1]) self.assertEqual(score3, 1) score4 = g.accuracy_score_dame( [1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1], [1, 1, 1, 1, 2, 1, 0, 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1]) self.assertEqual(score4, 1)