~jml/testtools/better-errors

« back to all changes in this revision

Viewing changes to testtools/testcase.py

  • Committer: Jonathan Lange
  • Date: 2010-01-16 02:42:14 UTC
  • mfrom: (56.1.2 api-docs)
  • Revision ID: jml@canonical.com-20100116024214-7at58f9xqmu6ujh8
Add a target for making apidocs.

 * Author: jml
 * Reviewer: lifeless

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
            needle in haystack, '%r not in %r' % (needle, haystack))
205
205
 
206
206
    def assertIs(self, expected, observed):
207
 
        """Assert that `expected` is `observed`."""
 
207
        """Assert that 'expected' is 'observed'."""
208
208
        self.assertTrue(
209
209
            expected is observed, '%r is not %r' % (expected, observed))
210
210
 
211
211
    def assertIsNot(self, expected, observed):
212
 
        """Assert that `expected` is not `observed`."""
 
212
        """Assert that 'expected' is not 'observed'."""
213
213
        self.assertTrue(
214
214
            expected is not observed, '%r is %r' % (expected, observed))
215
215