~testtools-dev/testtools/trunk

« back to all changes in this revision

Viewing changes to NEWS

  • Committer: Jonathan Lange
  • Date: 2011-08-15 13:24:05 UTC
  • mfrom: (225.1.11 matchers)
  • Revision ID: jml@canonical.com-20110815132405-stayl9hjlxf3ttga
 * Migrate assert* methods to use matchers
 * Add optional message parameter to assertThat

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  tells us to display. Old-style verbose output can be had by passing
35
35
  ``verbose=True`` to assertThat. (Jonathan Lange, #675323, #593190)
36
36
 
 
37
* assertThat accepts a message which will be used to annotate the matcher. This
 
38
  can be given as a third parameter or as a keyword parameter. (Robert Collins)
 
39
 
37
40
* Automated the Launchpad part of the release process.
38
41
  (Jonathan Lange, #623486)
39
42
 
62
65
* ``MatchesException`` now allows you to match exceptions against any matcher,
63
66
  rather than just regular expressions.  (Jonathan Lange, #791889)
64
67
 
 
68
* ``MatchesException`` now permits a tuple of types rather than a single type
 
69
  (when using the type matching mode).  (Robert Collins)
 
70
 
65
71
* ``MatchesStructure.byEquality`` added to make the common case of matching
66
72
  many attributes by equality much easier.  ``MatchesStructure.byMatcher``
67
73
  added in case folk want to match by things other than equality.
75
81
  * ``AllMatch`` matches many values against a single matcher.
76
82
    (Jonathan Lange, #615108)
77
83
 
 
84
  * ``Contains``. (Robert Collins)
 
85
 
78
86
  * ``GreaterThan``. (Christian Kampka)
79
87
 
80
88
* New helper, ``safe_hasattr`` added. (Jonathan Lange)