'Test if a requester can send a crawl request message.'

def test_encoding_decoding_crawl_request(self):

    meta = self.community.get_meta_message(CRAWL)
    requested_sequence_number = 500
    message = meta.impl(distribution=(self.community.claim_global_time(),), payload=(requested_sequence_number,))
    encoded_message = self.converter._encode_crawl_request(message)[0]
    result = self.converter._decode_crawl_request(TestPlaceholder(meta), 0, encoded_message)[1]
    self.assertEqual(requested_sequence_number, result.requested_sequence_number)
