code: def assert_matches(self, *args, **kwargs):
          
          matcher = make_matcher(*args, **kwargs)
          if not matcher.matches(self):
              raise AssertionError('%r does not match %r' % (self, matcher))
          return self
docs: Assert this matches a :ref:`message spec <message spec>`.
  
          Returns self.