code: def find_method(self, decl):
          
          name = decl.name
          method = None
          try:
              method = getattr(self, u'do_{}'.format(
                               (name).replace('-', '_')))
          except AttributeError:
              if name.startswith('data-'):
                  method = getattr(self, 'do_data_any')
              elif name.startswith('attr-'):
                  method = getattr(self, 'do_attr_any')
              else:
                  log(WARN, u'Missing method {}'.format(
                                   (name).replace('-', '_')).encode('utf-8'))
          if method:
              self.record_coverage_line(decl.source_line)
              return method
          else:
              return lambda x, y, z: None
docs: Find class method to call for declaration based on name.