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