# Path: cardinal/util.py
# def is_action(message):
# def parse_action(nick, message):
# def sleep(secs):
# def strip_formatting(line):
#         def white(text):
#         def black(text):
#         def blue(text):
#         def green(text):
#         def light_red(text):
#         def brown(text):
#         def purple(text):
#         def orange(text):
#         def yellow(text):
#         def light_green(text):
#         def cyan(text):
#         def light_cyan(text):
#         def light_blue(text):
#         def pink(text):
#         def grey(text):
#         def light_grey(text):
#     def bold(text):
#     def monospace(text):
#     def italic(text):
#     def strikethrough(text):
#     def underline(text):
# class formatting:
#     class color:
#     C = color
# F = formatting


import datetime
import pytest
from twisted.internet import defer
from cardinal import util




@pytest.mark.parametrize('message,expected', (
    ('\x01ACTION tests\x01', True),
    ('\x01ACTION tests', True),
    ('\x01ACTION', True),
    ('ACTION tests', False),
))
def test_is_action(message, expected):

# Path: cardinal/util.py
# def is_action(message):
# def parse_action(nick, message):
# def sleep(secs):
# def strip_formatting(line):
#         def white(text):
#         def black(text):
#         def blue(text):
#         def green(text):
#         def light_red(text):
#         def brown(text):
#         def purple(text):
#         def orange(text):
#         def yellow(text):
#         def light_green(text):
#         def cyan(text):
#         def light_cyan(text):
#         def light_blue(text):
#         def pink(text):
#         def grey(text):
#         def light_grey(text):
#     def bold(text):
#     def monospace(text):
#     def italic(text):
#     def strikethrough(text):
#     def underline(text):
# class formatting:
#     class color:
#     C = color
# F = formatting


# Path: cardinal/test_util.py
import datetime
import pytest
from twisted.internet import defer
from cardinal import util





@pytest.mark.parametrize('message,expected', (
    ('\x01ACTION tests\x01', True),
    ('\x01ACTION tests', True),
    ('\x01ACTION', True),
    ('ACTION tests', False),
))
def test_is_action(message, expected):

    assert util.is_action(message) == expected