示例#1
0
def test_matching_tid():
    # It _only_ matches the first byte)
    ok_(m.matching_tid('aaa', 'aaa'))
    ok_(m.matching_tid('axa', 'a1a'))
    ok_(m.matching_tid('aQWEREWTWETWTWETWETEWT', 'a'))
    ok_(not m.matching_tid('a', 'b'))
    ok_(not m.matching_tid('aZZ', 'bZZ'))
示例#2
0
def test_matching_tid():
    # It _only_ matches the first byte)
    ok_(m.matching_tid('aaa', 'aaa'))
    ok_(m.matching_tid('axa', 'a1a'))
    ok_(m.matching_tid('aQWEREWTWETWTWETWETEWT', 'a'))
    ok_(not m.matching_tid('a', 'b'))
    ok_(not m.matching_tid('aZZ', 'bZZ'))
示例#3
0
 def matching_tid(self, response_tid):
     return message.matching_tid(self.tid, response_tid)
示例#4
0
文件: querier.py 项目: zinat/pymdht
 def matching_tid(self, response_tid):
     return message.matching_tid(self.tid, response_tid)