Changeset 141
- Timestamp:
- 2002-03-30 22:36:31 (7 years ago)
- Files:
-
- trunk/_test_ftputil.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/_test_ftputil.py
r140 r141 30 30 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 31 31 32 # $Id: _test_ftputil.py,v 1.5 0 2002/03/30 22:18:20schwa Exp $32 # $Id: _test_ftputil.py,v 1.51 2002/03/30 22:36:31 schwa Exp $ 33 33 34 34 import unittest … … 99 99 # test cases 100 100 # 101 class TestOpenAndClose(unittest.TestCase): 102 """Test opening and closing of FTPHost objects.""" 103 104 def test_open_and_close(self): 105 """Test closing of FTPHost.""" 106 host = ftp_host_factory() 107 host.close() 108 self.assertEqual(host.closed, 1) 109 self.assertEqual(host._children, []) 110 111 101 112 class TestLogin(unittest.TestCase): 102 """Test invalid logins.""" 103 113 104 114 def test_invalid_login(self): 105 115 """Login to invalid host must fail."""
