summaryrefslogtreecommitdiffhomepage
path: root/test.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2004-03-08 17:54:19 +0000
committerRobey Pointer <robey@lag.net>2004-03-08 17:54:19 +0000
commit14f2193d3979c910d205282a43ca2da8f85f3915 (patch)
tree554749824e6282f1173e62df779930bb3c35e8d6 /test.py
parent7cd7fced6e89b92ceecb2209a6351f22d602abbf (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-32]
add unit tests add unit tests for BufferedFile and SFTP (it's a start). remove the demo sftp client because it was 99% copied from the other demos, which makes it kinda confusing. the unit tests are a much better example.
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/test.py b/test.py
new file mode 100755
index 00000000..15a9b779
--- /dev/null
+++ b/test.py
@@ -0,0 +1,35 @@
+#!/usr/bin/python
+
+# Copyright (C) 2003-2004 Robey Pointer <robey@lag.net>
+#
+# This file is part of paramiko.
+#
+# Paramiko is free software; you can redistribute it and/or modify it under the
+# terms of the GNU Lesser General Public License as published by the Free
+# Software Foundation; either version 2.1 of the License, or (at your option)
+# any later version.
+#
+# Paramiko is distrubuted in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with Foobar; if not, write to the Free Software Foundation, Inc.,
+# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+"""
+do the unit tests!
+"""
+
+import sys, os, unittest
+sys.path.append('tests/')
+
+from test_file import BufferedFileTest
+from test_sftp import SFTPTest
+
+suite = unittest.TestSuite()
+suite.addTest(unittest.makeSuite(BufferedFileTest))
+suite.addTest(unittest.makeSuite(SFTPTest))
+unittest.TextTestRunner(verbosity=2).run(suite)
+