def test_add_fallacies_and_count_with_1_fallacy(self): premise = Premise(1) premise.add_fallacies(FallacyType.BeggingTheQuestion) self.assertEqual(len(premise.fallacies), 1) self.assertEqual(premise.fallacies_count(), 1) self.assertEqual(premise.fallacies[FallacyType.BeggingTheQuestion], 1)
def test_add_fallacies_and_count_with_more_fallacies(self): premise = Premise(1) premise.add_fallacies(FallacyType.BeggingTheQuestion, FallacyType.FallacyOfTheBeard, FallacyType.BeggingTheQuestion) self.assertEqual(len(premise.fallacies), 2) self.assertEqual(premise.fallacies_count(), 3) self.assertEqual(premise.fallacies[FallacyType.BeggingTheQuestion], 2)
def test_add_fallacies_and_count_with_0_fallacies(self): premise = Premise(1) premise.add_fallacies() self.assertEqual(len(premise.fallacies), 0) self.assertEqual(premise.fallacies_count(), 0)