diff options
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r-- | Lib/unittest/case.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index a4e45aa..cf180d7 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -189,6 +189,7 @@ class TestCase(object): self.addTypeEqualityFunc(tuple, self.assertTupleEqual) self.addTypeEqualityFunc(set, self.assertSetEqual) self.addTypeEqualityFunc(frozenset, self.assertSetEqual) + self.addTypeEqualityFunc(str, self.assertMultiLineEqual) def addTypeEqualityFunc(self, typeobj, function): """Add a type specific assertEqual style function to compare a type. |