mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
Fixed regression tests for type error
This commit is contained in:
parent
52d235b957
commit
46cb4e483f
1 changed files with 4 additions and 4 deletions
|
@ -292,11 +292,11 @@ class TestProcessTree(unittest.TestCase):
|
|||
x = ProcessTrees()
|
||||
x.annotateProcessList(msg)
|
||||
# Check if information is there
|
||||
self.assertEqual(x.aplist['1139']['timestamp'],'1263846206')
|
||||
self.assertEqual(x.aplist[1139]['timestamp'],'1263846206')
|
||||
s = "192.168.1.23 49826 22"
|
||||
self.assertEqual(x.aplist['1139']['ssh_client'],s)
|
||||
self.assertEqual(x.aplist['1139']['file'], '/usr/bin/lesspipe')
|
||||
x.addUser('1139')
|
||||
self.assertEqual(x.aplist[1139]['ssh_client'],s)
|
||||
self.assertEqual(x.aplist[1139]['file'], '/usr/bin/lesspipe')
|
||||
x.addUser(1139)
|
||||
#Test export
|
||||
x.exportUserListTxt('/tmp/userlist.txt')
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue