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