code: def has_length(self, value, q, strict=False):
          
          value = stringify(value)
          if value is not None:
              if len(value) == q:
                  return
          self.shout('Value %r not matching length %r', strict, value, q)
docs: if value has a length of q