#2 Test code does not work.

open
nobody
None
5
2005-04-01
2005-04-01
Liris
No

I am evaluating khashmir and I got some problem.
Khashmir test code(test_airhook.py and test.py) did not
work on twisted version 1.3.

the following is the patch I used to work.

Index: airhook.py

===================================================================

RCS file: /cvsroot/khashmir/khashmir/airhook.py,v

retrieving revision 1.12

diff -u -r1.12 airhook.py

--- airhook.py 11 Jul 2004 08:57:54 -0000 1.12

+++ airhook.py 31 Mar 2005 06:24:02 -0000

@@ -30,7 +30,7 @@

-class Airhook:

+class Airhook(protocol.DatagramProtocol):

def __init__(self):

self.noisy = None

# this should be changed to storage that drops
old entries

Index: test.py

===================================================================

RCS file: /cvsroot/khashmir/khashmir/test.py,v

retrieving revision 1.7

diff -u -r1.7 test.py

--- test.py 22 Feb 2003 07:05:49 -0000 1.7

+++ test.py 31 Mar 2005 06:24:02 -0000

@@ -4,10 +4,10 @@

import unittest

import ktable, khashmir

-import hash, node, knode

+import khash, node, knode

import actions

-import btemplate

+#import btemplate

import test_airhook

import test_krpc

-tests =
unittest.defaultTestLoader.loadTestsFromNames(['hash',
'node', 'knode', 'actions', 'ktable', 'test_airhook',
'test_krpc'])

-result = unittest.TextTestRunner().run(tests)

+tests =
unittest.defaultTestLoader.loadTestsFromNames(['khash',
'node', 'knode', 'actions', 'ktable', 'test_airhook',
'test_krpc'])

+result = unittest.TextTestRunner(verbosity=5).run(tests)

cvs diff: Diffing khashmir

cvs diff: Diffing khashmir/test

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks