original_docstring: 
          Assert a metric is tagged with tag
          
docstring: Assert a metric is tagged with tag
docstring_tokens: Assert a metric is tagged with tag
code: def assert_metric_has_tag(self, metric_name, tag, count=None, at_least=1):
          """
          Assert a metric is tagged with tag
          """
          self._asserted.add(metric_name)
  
          candidates = []
          for metric in self.metrics(metric_name):
              if tag in metric.tags:
                  candidates.append(metric)
  
          if count:
              assert len(candidates) == count
          else:
              assert len(candidates) >= at_least
code_tokens: def assert_metric_has_tag ( self , metric_name , tag , count = None , at_least = 1 ) : self . _asserted . add ( metric_name ) candidates = [ ] for metric in self . metrics ( metric_name ) : if tag in metric . tags : candidates . append ( metric ) if count : assert len ( candidates ) == count else : assert len ( candidates ) >= at_least
short_docstring: Assert a metric is tagged with tag
short_docstring_tokens: Assert a metric is tagged with tag
comment: """
          Assert a metric is tagged with tag
          """