def test_random_requirement_false(self): requirement = RandomRequirement({"percent": 0}) self.assertFalse(requirement.check(None, None))
def test_random_requirement_true(self): requirement = RandomRequirement({"percent": 100}) self.assertTrue(requirement.check(None, None))