summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2006-04-08 15:24:56 -0700
committerRobey Pointer <robey@lag.net>2006-04-08 15:24:56 -0700
commit8087fa5a291758e75191006c82a13557018f853a (patch)
treeb3cc6daf1cc646b11729065950577f6a9c69f28b /tests
parentccc1046a5c3f39c195e2fceae01ced155d8a8778 (diff)
[project @ robey@lag.net-20060408222456-d3813e0206a2cda7]
assertTrue doesn't exist in py23
Diffstat (limited to 'tests')
-rw-r--r--tests/test_hostkeys.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_hostkeys.py b/tests/test_hostkeys.py
index 4eb46d38..798252c0 100644
--- a/tests/test_hostkeys.py
+++ b/tests/test_hostkeys.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
# Copyright (C) 2006 Robey Pointer <robey@lag.net>
#
# This file is part of paramiko.
@@ -70,7 +68,7 @@ class HostKeysTest (unittest.TestCase):
x = hostdict['foo.example.com']
fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint())
self.assertEquals('7EC91BB336CB6D810B124B1353C32396', fp)
- self.assertTrue(hostdict.check('foo.example.com', key))
+ self.assert_(hostdict.check('foo.example.com', key))
def test_3_dict(self):
hostdict = paramiko.HostKeys('hostfile.temp')
@@ -79,7 +77,7 @@ class HostKeysTest (unittest.TestCase):
self.assert_(hostdict.has_key('secure.example.com'))
self.assert_(not hostdict.has_key('not.example.com'))
x = hostdict.get('secure.example.com', None)
- self.assertTrue(x is not None)
+ self.assert_(x is not None)
fp = paramiko.util.hexify(x['ssh-rsa'].get_fingerprint())
self.assertEquals('E6684DB30E109B67B70FF1DC5C7F1363', fp)
i = 0