# Path: groupy/api/user.py
# class User(base.Manager):
# class SmsMode(base.Manager):
#     def __init__(self, session):
#     def blocks(self):
#     def me(self):
#     def get_me(self):
#     def update(self, **params):
#     def __init__(self, session):
#     def enable(self, duration, registration_id=None):
#     def disable(self):
# 
# Path: tests/api/base.py
# def get_fake_response(code=200, data=None):
#     response = mock.Mock()
#     response.status_code = code
#     response.data = data
#     return response
# 
# Path: tests/api/base.py
# class TestCase(unittest.TestCase):
#     def assert_kwargs(self, mock, **kwargs):
#         __, m_kwargs = mock.call_args
#         for k, v in kwargs.items():
#             with self.subTest(key=k, value=v):
#                 self.assertEqual(m_kwargs.get(k), v)


from unittest import mock
from groupy.api import user
from .base import get_fake_response
from .base import TestCase



class UserTests(TestCase):
    def setUp(self):
        self.m_session = mock.Mock()

# Path: groupy/api/user.py
# class User(base.Manager):
# class SmsMode(base.Manager):
#     def __init__(self, session):
#     def blocks(self):
#     def me(self):
#     def get_me(self):
#     def update(self, **params):
#     def __init__(self, session):
#     def enable(self, duration, registration_id=None):
#     def disable(self):
# 
# Path: tests/api/base.py
# def get_fake_response(code=200, data=None):
#     response = mock.Mock()
#     response.status_code = code
#     response.data = data
#     return response
# 
# Path: tests/api/base.py
# class TestCase(unittest.TestCase):
#     def assert_kwargs(self, mock, **kwargs):
#         __, m_kwargs = mock.call_args
#         for k, v in kwargs.items():
#             with self.subTest(key=k, value=v):
#                 self.assertEqual(m_kwargs.get(k), v)


# Path: tests/api/test_user.py
from unittest import mock
from groupy.api import user
from .base import get_fake_response
from .base import TestCase




class UserTests(TestCase):
    def setUp(self):
        self.m_session = mock.Mock()

        self.m_session.get.return_value = get_fake_response(data={'id': 'foo'})