# Path: nappingcat/auth.py
# class AuthBackend(object):
#     def __init__(self, settings):
#     def has_permission(self, user, permission):
#     def add_permission(self, user, permission):
#     def remove_permission(self, user, permission):
#     def add_user(self, username):
#     def add_key_to_user(self, user, key):
#     def get_keys(self, username):
#     def finish(self, pubkey_handler):
#     def get_users(self):
# def get_auth_backend_from_settings(settings):
# 
# Path: nappingcat/request.py
# class Request(object):
#     def __init__(self, user, command, settings, streams, root_patterns):


from unittest import TestCase
from nappingcat import auth
from nappingcat import request
import ConfigParser
import StringIO
import random

class StubbedAuthTest(auth.AuthBackend):
    pass

class TriggeredAuthTest(auth.AuthBackend):
    def __getattribute__(self, what):
        return lambda *args, **kwargs : "triggered %s" % what 

class TestOfGetAuthBackendFromSettings(TestCase):
    def test_loads_auth_from_settings(self):
        settings_str = """

# Path: nappingcat/auth.py
# class AuthBackend(object):
#     def __init__(self, settings):
#     def has_permission(self, user, permission):
#     def add_permission(self, user, permission):
#     def remove_permission(self, user, permission):
#     def add_user(self, username):
#     def add_key_to_user(self, user, key):
#     def get_keys(self, username):
#     def finish(self, pubkey_handler):
#     def get_users(self):
# def get_auth_backend_from_settings(settings):
# 
# Path: nappingcat/request.py
# class Request(object):
#     def __init__(self, user, command, settings, streams, root_patterns):


# Path: tests/auth.py
from unittest import TestCase
from nappingcat import auth
from nappingcat import request
import ConfigParser
import StringIO
import random


class StubbedAuthTest(auth.AuthBackend):
    pass

class TriggeredAuthTest(auth.AuthBackend):
    def __getattribute__(self, what):
        return lambda *args, **kwargs : "triggered %s" % what 

class TestOfGetAuthBackendFromSettings(TestCase):
    def test_loads_auth_from_settings(self):
        settings_str = """

[kittyconfig]