original_docstring: 
          Assert a service check was processed by this stub
          
docstring: Assert a service check was processed by this stub
docstring_tokens: Assert a service check was processed by this stub
code: def assert_service_check(self, name, status=None, tags=None, count=None, at_least=1, hostname=None, message=None):
          """
          Assert a service check was processed by this stub
          """
          tags = normalize_tags(tags, sort=True)
          candidates = []
          for sc in self.service_checks(name):
              if status is not None and status != sc.status:
                  continue
  
              if tags and tags != sorted(sc.tags):
                  continue
  
              if hostname is not None and hostname != sc.hostname:
                  continue
  
              if message is not None and message != sc.message:
                  continue
  
              candidates.append(sc)
  
          if count is not None:
              msg = "Needed exactly {} candidates for '{}', got {}".format(count, name, len(candidates))
              assert len(candidates) == count, msg
          else:
              msg = "Needed at least {} candidates for '{}', got {}".format(at_least, name, len(candidates))
              assert len(candidates) >= at_least, msg
code_tokens: def assert_service_check ( self , name , status = None , tags = None , count = None , at_least = 1 , hostname = None , message = None ) : tags = normalize_tags ( tags , sort = True ) candidates = [ ] for sc in self . service_checks ( name ) : if status is not None and status != sc . status : continue if tags and tags != sorted ( sc . tags ) : continue if hostname is not None and hostname != sc . hostname : continue if message is not None and message != sc . message : continue candidates . append ( sc ) if count is not None : msg = "Needed exactly {} candidates for '{}', got {}" . format ( count , name , len ( candidates ) ) assert len ( candidates ) == count , msg else : msg = "Needed at least {} candidates for '{}', got {}" . format ( at_least , name , len ( candidates ) ) assert len ( candidates ) >= at_least , msg
short_docstring: Assert a service check was processed by this stub
short_docstring_tokens: Assert a service check was processed by this stub
comment: """
          Assert a service check was processed by this stub
          """