# Path: bluechips/lib/permissions.py
# class BlueChipUser(RequestPermission):
# class BlueChipResident(RequestPermission):
# class DummyAuthenticate(AddDictToEnviron):
#     def check(self, app, environ, start_response):
#     def check(self, app, environ, start_response):
#     def __init__(self, app, app_conf):
# def authenticate(environ, username, password):


from unittest import TestCase
from bluechips.lib import permissions

class TestReorderingSettle(TestCase):
    def test_authenticate(self):
        assert permissions.authenticate({}, u'root', u'charliepass')

# Path: bluechips/lib/permissions.py
# class BlueChipUser(RequestPermission):
# class BlueChipResident(RequestPermission):
# class DummyAuthenticate(AddDictToEnviron):
#     def check(self, app, environ, start_response):
#     def check(self, app, environ, start_response):
#     def __init__(self, app, app_conf):
# def authenticate(environ, username, password):


# Path: bluechips/tests/lib/test_permissions.py
from unittest import TestCase
from bluechips.lib import permissions


class TestReorderingSettle(TestCase):
    def test_authenticate(self):
        assert permissions.authenticate({}, u'root', u'charliepass')

        assert not permissions.authenticate({}, u'root', u'blah')