def test_peril_not_allowed(self): contract = Contract(self.contract_data) result = contract.peril_allowed("Tornado") self.assertFalse(result)
def test_peril_allowed(self): contract = Contract(self.contract_data) result = contract.peril_allowed("Hurricane") self.assertTrue(result)