def test_read_tlv_stream_tests3(self):
    lnser = LNSerializer()
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('0208000000000000022601012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('0208000000000000023102080000000000000451')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('1f000f012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('1f001f012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('ffffffffffffffffff000000')), tlv_stream_name='n2')
def test_read_tlv_stream_tests3(self):
    lnser = LNSerializer()
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('0208000000000000022601012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('0208000000000000023102080000000000000451')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('1f000f012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('1f001f012a')), tlv_stream_name='n1')
    with self.assertRaises(MsgInvalidFieldOrder):
        lnser.read_tlv_stream(fd=io.BytesIO(bfh('ffffffffffffffffff000000')), tlv_stream_name='n2')