mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +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 = ProcessTrees()
|
||||||
x.annotateProcessList(msg)
|
x.annotateProcessList(msg)
|
||||||
# Check if information is there
|
# 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"
|
s = "192.168.1.23 49826 22"
|
||||||
self.assertEqual(x.aplist['1139']['ssh_client'],s)
|
self.assertEqual(x.aplist[1139]['ssh_client'],s)
|
||||||
self.assertEqual(x.aplist['1139']['file'], '/usr/bin/lesspipe')
|
self.assertEqual(x.aplist[1139]['file'], '/usr/bin/lesspipe')
|
||||||
x.addUser('1139')
|
x.addUser(1139)
|
||||||
#Test export
|
#Test export
|
||||||
x.exportUserListTxt('/tmp/userlist.txt')
|
x.exportUserListTxt('/tmp/userlist.txt')
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue