Exemplo n.º 1
0
 def test_rolling_requirement_false(self):
     user = PicklableMock()
     user.id = "353454"
     requirement = RollingRequirement({"percent": 0})
     text_normalization_result = None
     self.assertFalse(requirement.check(text_normalization_result, user))
 def test_rolling_requirement_true(self):
     user = Mock()
     user.id = "353454"
     requirement = RollingRequirement({"percent": 100})
     text_normalization_result = None
     self.assertTrue(requirement.check(text_normalization_result, user))