def test_tags(self):
        """It should be possible to choose the number of tags with num_tags."""
        # If num_tags isn't passed the factory chooses a random number of tags.
        # Here we choose a num_tags higher than the upper range of this random
        # choice, so there's no chance of random false positive test passes.
        annotation = factories.Annotation(num_tags=20)
        assert len(annotation["tags"]) == 20
        assert "num_tags" not in annotation
dataset/ETHPy150Open hypothesis/h/h/test/factories_test.py/TestAnnotation.test_tags/original