forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python#10273: Rename assertRegexpMatches and assertRaisesRegexp to as…
…sertRegex and assertRaisesRegex.
- Loading branch information
1 parent
f10c400
commit ed3a7d2
Showing
21 changed files
with
203 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -319,12 +319,12 @@ def testSendMessageWithAddresses(self): | |
self.assertEqual(self.output.getvalue(), mexpect) | ||
debugout = smtpd.DEBUGSTREAM.getvalue() | ||
sender = re.compile("^sender: [email protected]$", re.MULTILINE) | ||
self.assertRegexpMatches(debugout, sender) | ||
self.assertRegex(debugout, sender) | ||
for addr in ('John', 'Sally', 'Fred', 'root@localhost', | ||
'[email protected]'): | ||
to_addr = re.compile(r"^recips: .*'{}'.*$".format(addr), | ||
re.MULTILINE) | ||
self.assertRegexpMatches(debugout, to_addr) | ||
self.assertRegex(debugout, to_addr) | ||
|
||
def testSendMessageWithSomeAddresses(self): | ||
# Make sure nothing breaks if not all of the three 'to' headers exist | ||
|
@@ -347,11 +347,11 @@ def testSendMessageWithSomeAddresses(self): | |
self.assertEqual(self.output.getvalue(), mexpect) | ||
debugout = smtpd.DEBUGSTREAM.getvalue() | ||
sender = re.compile("^sender: [email protected]$", re.MULTILINE) | ||
self.assertRegexpMatches(debugout, sender) | ||
self.assertRegex(debugout, sender) | ||
for addr in ('John', 'Dinsdale'): | ||
to_addr = re.compile(r"^recips: .*'{}'.*$".format(addr), | ||
re.MULTILINE) | ||
self.assertRegexpMatches(debugout, to_addr) | ||
self.assertRegex(debugout, to_addr) | ||
|
||
|
||
class NonConnectingTests(unittest.TestCase): | ||
|
Oops, something went wrong.