# Path: randtalkbot/message.py
# LOGGER = logging.getLogger('randtalkbot.message')
#     COMMAND_RE_PATTERN = re.compile(r'^/([a-z_]+)\b\s*(.*)$')
# class Message:
#     def __init__(self, message_json):
#     def decode_command_args(self):
#     def _init_audio(self, message_json):
#     def _init_document(self, message_json):
#     def _init_location(self, message_json):
#     def _init_photo(self, message_json):
#     def _init_sticker(self, message_json):
#     def _init_text(self, unused_message_json):
#     def _init_video(self, message_json):
#     def _init_voice(self, message_json):


import unittest
from unittest.mock import patch, Mock
from randtalkbot.message import Message, UnsupportedContentError
        self.sticker = {
            'height': 512,
            'thumb': {
                'height': 128,
                'width': 128,
                'file_id': 'AAQCABO-o1kqAARdN9Z7Y4p-PmA7AAIC',
                'file_size': 5672,
                },
            'width': 512,
            'file_id': 'BQADAgAD7gAD9HsZAAFCdfFWtd5o1gI',
            'file_size': 34348,
            }

    def test_decode_command_args__ok(self):
        message = Mock()
        message.command_args = 'eyJmb28iOiAiYmFyIn0='
        self.assertEqual(
            Message.decode_command_args(message),
            {"foo": "bar"},
            )

    def test_decode_command_args__b64decode_type_error(self):
        message = Mock()
        message.command_args = None
        with self.assertRaises(UnsupportedContentError):
            Message.decode_command_args(message)

    def test_decode_command_args__b64decode_incorrect_padding(self):
        message = Mock()
        message.command_args = 'NoonfowfVyZSwg'

# Path: randtalkbot/message.py
# LOGGER = logging.getLogger('randtalkbot.message')
#     COMMAND_RE_PATTERN = re.compile(r'^/([a-z_]+)\b\s*(.*)$')
# class Message:
#     def __init__(self, message_json):
#     def decode_command_args(self):
#     def _init_audio(self, message_json):
#     def _init_document(self, message_json):
#     def _init_location(self, message_json):
#     def _init_photo(self, message_json):
#     def _init_sticker(self, message_json):
#     def _init_text(self, unused_message_json):
#     def _init_video(self, message_json):
#     def _init_voice(self, message_json):


# Path: tests/test_message.py
import unittest
from unittest.mock import patch, Mock
from randtalkbot.message import Message, UnsupportedContentError

        self.sticker = {
            'height': 512,
            'thumb': {
                'height': 128,
                'width': 128,
                'file_id': 'AAQCABO-o1kqAARdN9Z7Y4p-PmA7AAIC',
                'file_size': 5672,
                },
            'width': 512,
            'file_id': 'BQADAgAD7gAD9HsZAAFCdfFWtd5o1gI',
            'file_size': 34348,
            }

    def test_decode_command_args__ok(self):
        message = Mock()
        message.command_args = 'eyJmb28iOiAiYmFyIn0='
        self.assertEqual(
            Message.decode_command_args(message),
            {"foo": "bar"},
            )

    def test_decode_command_args__b64decode_type_error(self):
        message = Mock()
        message.command_args = None
        with self.assertRaises(UnsupportedContentError):
            Message.decode_command_args(message)

    def test_decode_command_args__b64decode_incorrect_padding(self):
        message = Mock()
        message.command_args = 'NoonfowfVyZSwg'

        with self.assertRaises(UnsupportedContentError):