def test_correctly_encodes_sct_list_one_sct(self):
    single_sct = 'EXAMPLE_KEY696765737400000000000004d20000040300097369676e6174757265'.decode('hex')
    sct_list = client_pb2.SignedCertificateTimestampList()
    sct_list.sct_list.append(single_sct)
    encoded_sct_list = tls_message.encode(sct_list)
    self.assertEqual(encoded_sct_list[:4], '003a0038'.decode('hex'))
    self.assertEqual(encoded_sct_list[4:], single_sct)
def test_correctly_encodes_sct_list_one_sct(self):
    single_sct = 'EXAMPLE_KEY696765737400000000000004d20000040300097369676e6174757265'.decode('hex')
    sct_list = client_pb2.SignedCertificateTimestampList()
    sct_list.sct_list.append(single_sct)
    encoded_sct_list = tls_message.encode(sct_list)
    self.assertEqual(encoded_sct_list[:4], '003a0038'.decode('hex'))
    self.assertEqual(encoded_sct_list[4:], single_sct)