def run_test(self):
    self.log.info('Test that peer is disconnected if it sends mempool message')
    self.test_message_causes_disconnect(msg_mempool())
    self.log.info('Test that peer is disconnected if it sends filterload message')
    self.test_message_causes_disconnect(msg_filterload())
    self.log.info('Test that peer is disconnected if it sends filteradd message')
    self.test_message_causes_disconnect(msg_filteradd(data=b'\xcc'))
    self.log.info('Test that peer is disconnected if it sends a filterclear message')
    self.test_message_causes_disconnect(msg_filterclear())
def run_test(self):
    self.log.info('Test that peer is disconnected if it sends mempool message')
    self.test_message_causes_disconnect(msg_mempool())
    self.log.info('Test that peer is disconnected if it sends filterload message')
    self.test_message_causes_disconnect(msg_filterload())
    self.log.info('Test that peer is disconnected if it sends filteradd message')
    self.test_message_causes_disconnect(msg_filteradd(data=b'\xcc'))
    self.log.info('Test that peer is disconnected if it sends a filterclear message')
    self.test_message_causes_disconnect(msg_filterclear())