# Path: bottery/handlers.py
# class CaseSensitiveOptionMixin:
# class PlatformsOptionMixin:
# class BaseHandler(PlatformsOptionMixin):
# class RegexHandler(BaseHandler):
# class MessageHandler(CaseSensitiveOptionMixin, BaseHandler):
# class StartswithHandler(CaseSensitiveOptionMixin, BaseHandler):
# class DefaultHandler(BaseHandler):
#     def clean_case_senstive(self):
#     def clean_platforms(self):
#     def __init__(self, pattern=None, view=None, *args, **kwargs):
#     def check(self, message):
#     def full_clean(self):
#     def match(self, message):
#     def __init__(self, *args, **kwargs):
#     def match(self, message):
#     def match(self, message):
#     def match(self, message):
#     def __init__(self, view, *args, **kwargs):
#     def check(self, message):
# def _handle_msg(pattern, view=None, Handler=None, *args, **kwargs):


from unittest import mock
from bottery import handlers
import pytest
    assert not handler.check(message)


def test_startswith_handler_check_with_case_sensitive(message):
    message.text = 'hello my friend'
    handler = handlers.StartswithHandler(pattern='hello',
                                         case_sensitive=False)
    assert handler.check(message)


def test_startswith_handler_check_negative_match_with_case_sensitive(message):
    message.text = 'pong'
    handler = handlers.StartswithHandler(pattern='hello',
                                         case_sensitive=False)
    assert not handler.check(message)


def test_default_handler_check(message):
    message.text = 'pong'
    assert handlers.DefaultHandler('view').check(message)


def test_regex_handler_check(message):
    message.text = '20 pings'
    handler = handlers.RegexHandler(pattern=r'\d+')
    assert handler.check(message)


def test_regex_handler_check_negative_match(message):
    message.text = 'pings'

# Path: bottery/handlers.py
# class CaseSensitiveOptionMixin:
# class PlatformsOptionMixin:
# class BaseHandler(PlatformsOptionMixin):
# class RegexHandler(BaseHandler):
# class MessageHandler(CaseSensitiveOptionMixin, BaseHandler):
# class StartswithHandler(CaseSensitiveOptionMixin, BaseHandler):
# class DefaultHandler(BaseHandler):
#     def clean_case_senstive(self):
#     def clean_platforms(self):
#     def __init__(self, pattern=None, view=None, *args, **kwargs):
#     def check(self, message):
#     def full_clean(self):
#     def match(self, message):
#     def __init__(self, *args, **kwargs):
#     def match(self, message):
#     def match(self, message):
#     def match(self, message):
#     def __init__(self, view, *args, **kwargs):
#     def check(self, message):
# def _handle_msg(pattern, view=None, Handler=None, *args, **kwargs):


# Path: tests/test_handlers.py
from unittest import mock
from bottery import handlers
import pytest

    assert not handler.check(message)


def test_startswith_handler_check_with_case_sensitive(message):
    message.text = 'hello my friend'
    handler = handlers.StartswithHandler(pattern='hello',
                                         case_sensitive=False)
    assert handler.check(message)


def test_startswith_handler_check_negative_match_with_case_sensitive(message):
    message.text = 'pong'
    handler = handlers.StartswithHandler(pattern='hello',
                                         case_sensitive=False)
    assert not handler.check(message)


def test_default_handler_check(message):
    message.text = 'pong'
    assert handlers.DefaultHandler('view').check(message)


def test_regex_handler_check(message):
    message.text = '20 pings'
    handler = handlers.RegexHandler(pattern=r'\d+')
    assert handler.check(message)


def test_regex_handler_check_negative_match(message):
    message.text = 'pings'

    handler = handlers.RegexHandler(pattern=r'\d+')