~computer-janitor-hackers/systemcleaner/intrepid-sru-1-proposal

« back to all changes in this revision

Viewing changes to systemcleaner/exc_tests.py

  • Committer: Lars Wirzenius
  • Date: 2008-07-24 20:23:44 UTC
  • mfrom: (31.1.47 code-cleanup)
  • Revision ID: liw@liw.fi-20080724202344-q17z597lnv45188y
Merged from cleanup branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    def testReturnsStrCorrectly(self):
26
26
        e = systemcleaner.Exception()
27
27
        e._str = "pink"
28
 
        self.failUnlessEqual(str(e), "pink")
 
28
        self.assertEqual(str(e), "pink")
29
29
 
30
30
 
31
31
class UnimplementedMethodTests(unittest.TestCase):
32
32
 
33
33
    def testErrorMessageContainsMethodName(self):
34
34
        e = systemcleaner.UnimplementedMethod(self.__init__)
35
 
        self.failUnless("__init__" in str(e))
 
 
b'\\ No newline at end of file'
 
35
        self.assert_("__init__" in str(e))
 
 
b'\\ No newline at end of file'