def test_voice_attach_has_voice_type(): builder = MessageBuilder() builder.voice() assert isinstance(builder.message.attachments.voice, Voice)
def test_voice_in_attachments(): builder = MessageBuilder() builder.image() builder.voice() assert builder.message.attachments.voice