Esempio n. 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'))
Esempio n. 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'))
Esempio n. 3
0
 def matching_tid(self, response_tid):
     return message.matching_tid(self.tid, response_tid)
Esempio n. 4
0
 def matching_tid(self, response_tid):
     return message.matching_tid(self.tid, response_tid)