# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 
# 
# Path: nappingcat/exceptions.py
# class NappingCatUnhandled(NappingCatException):
#     pass
# 
# class NappingCatBadPatterns(NappingCatBadConfig):
#     pass


from unittest import TestCase
from nappingcat import patterns
from nappingcat.exceptions import NappingCatUnhandled, NappingCatBadPatterns
import random

random_value = random.randint(1,100)
def test_fn(*args, **kwargs):
    return random_value

cmdpatterns = patterns.patterns('tests',
            (r'^anything', test_fn),
            (r'^something_else', patterns.include('tests.patterns_test')),
            (r'^something', 'test_fn'),
) 

class TestOfCommandPatterns(TestCase):

# Path: nappingcat/patterns.py
# def patterns(path, *args):
#     return CommandPatterns(path, args) 
# 
# Path: nappingcat/exceptions.py
# class NappingCatUnhandled(NappingCatException):
#     pass
# 
# class NappingCatBadPatterns(NappingCatBadConfig):
#     pass


# Path: tests/patterns.py
from unittest import TestCase
from nappingcat import patterns
from nappingcat.exceptions import NappingCatUnhandled, NappingCatBadPatterns
import random


random_value = random.randint(1,100)
def test_fn(*args, **kwargs):
    return random_value

cmdpatterns = patterns.patterns('tests',
            (r'^anything', test_fn),
            (r'^something_else', patterns.include('tests.patterns_test')),
            (r'^something', 'test_fn'),
) 

class TestOfCommandPatterns(TestCase):

    def test_init_assigns_appropriately(self):