def test_mitigation_cached_parameter(self): self.assertAlmostEqual(0.4441, armor_mitigation.mitigation(4700, 60, 5882.5), 4) self.assertAlmostEqual(0.4217, armor_mitigation.mitigation(7700, 70, 10557.5), 4) self.assertAlmostEqual(0.4109, armor_mitigation.mitigation(10623, 80, 15232.5), 4) self.assertAlmostEqual(0.3148, armor_mitigation.mitigation(11977, 85, 26070.0), 4)
def test_mitigation_spot_checks(self): self.assertAlmostEqual(0.4441, armor_mitigation.mitigation(4700, 60), 4) self.assertAlmostEqual(0.4217, armor_mitigation.mitigation(7700, 70), 4) self.assertAlmostEqual(0.4109, armor_mitigation.mitigation(10623, 80), 4) self.assertAlmostEqual(0.3148, armor_mitigation.mitigation(11977, 85), 4)