AddressList.__str__(): Get rid of useless, and broken method. Closes
[python/dscho.git] / Lib / test / test_shutil.py
blob3a39ec9056f4c0fa23e5a934cc44471d0a72314f
1 # Copyright (C) 2003 Python Software Foundation
3 import unittest
4 import shutil
5 import tempfile
6 from test import test_support
8 class TestShutil(unittest.TestCase):
9 def test_rmtree_errors(self):
10 # filename is guaranteed not to exist
11 filename = tempfile.mktemp()
12 self.assertRaises(OSError, shutil.rmtree, filename)
13 self.assertEqual(shutil.rmtree(filename, True), None)
17 def test_main():
18 test_support.run_unittest(TestShutil)
21 if __name__ == '__main__':
22 test_main()