code: def is_same_as(self, other):
          
          if self.val is not other:
              self._err('Expected <%s> to be identical to <%s>, but was not.' % (self.val, other))
          return self
docs: Asserts that the val is identical to other, via 'is' compare.