~aaron-whitehouse/duplicity/08-README-TESTING

« back to all changes in this revision

Viewing changes to testing/unit/test_tempdir.py

  • Committer: Kenneth Loafman
  • Date: 2018-07-27 02:18:12 UTC
  • Revision ID: kenneth@loafman.com-20180727021812-3yzv15gux0bnncds
* Checkpoint: Fixing unadorned strings for testing/unit/*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        td.cleanup()
54
54
 
55
55
    def test_dirname(self):
56
 
        """
 
56
        u"""
57
57
        test if we generated a dirname
58
58
        """
59
59
        td = tempdir.default()
60
60
        dirname = td.dir()
61
61
        self.assertTrue( dirname is not None )
62
62
 
63
 
        """
 
63
        u"""
64
64
        test if duplicity's temp files are created in our temp dir
65
65
        """
66
66
        f1d, f1_name = tempdir.default().mkstemp()
68
68
 
69
69
        self.assertTrue( dirname == f1_dirname )
70
70
 
71
 
        """
 
71
        u"""
72
72
        test if tempfile creates in our temp dir now as well by default
73
73
        """
74
74
        f2 = tempfile.NamedTemporaryFile()
84
84
 
85
85
        td.cleanup()
86
86
 
87
 
if __name__ == "__main__":
 
87
if __name__ == u"__main__":
88
88
    unittest.main()