# Path: testing/factories/employee.py
# def create_employee(
#     username='johndoe',
#     department='Engineering',
#     first_name='John',
#     last_name='Doe',
#     photo_url=None,
#     office=None,
# ):
# 
#     if photo_url is None:
#         photo_url = 'http://example.com/photos/{0}.jpg'.format(username)
# 
#     return Employee.create_from_dict({
#         'username': username,
#         'department': department,
#         'first_name': first_name,
#         'last_name': last_name,
#         'photo_url': photo_url,
#         'office': office,
#     })
# 
# Path: testing/factories/love.py
# def create_love(
#     sender_key,
#     recipient_key,
#     message=DEFAULT_LOVE_MESSAGE,
#     secret=False,
#     company_values=()
# ):
# 
#     love = Love(
#         sender_key=sender_key,
#         recipient_key=recipient_key,
#         message=message,
#         secret=secret,
#         company_values=company_values
#     )
#     love.put()
# 
#     return love
# 
# Path: testing/util.py
# class LoggedInAdminBaseTest(LoggedInUserBaseTest):
# 
#     nosegae_user_kwargs = dict(
#         USER_ID='johndoe',
#         USER_EMAIL='johndoe@example.com',
#         USER_IS_ADMIN='1',
#     )


import mock
from testing.factories.employee import create_employee
from testing.factories.love import create_love
from testing.util import LoggedInAdminBaseTest
# -*- coding: utf-8 -*-



class EmailLoveTestCase(LoggedInAdminBaseTest):

    def setUp(self):
        self.sender = create_employee(username='john')

# Path: testing/factories/employee.py
# def create_employee(
#     username='johndoe',
#     department='Engineering',
#     first_name='John',
#     last_name='Doe',
#     photo_url=None,
#     office=None,
# ):
# 
#     if photo_url is None:
#         photo_url = 'http://example.com/photos/{0}.jpg'.format(username)
# 
#     return Employee.create_from_dict({
#         'username': username,
#         'department': department,
#         'first_name': first_name,
#         'last_name': last_name,
#         'photo_url': photo_url,
#         'office': office,
#     })
# 
# Path: testing/factories/love.py
# def create_love(
#     sender_key,
#     recipient_key,
#     message=DEFAULT_LOVE_MESSAGE,
#     secret=False,
#     company_values=()
# ):
# 
#     love = Love(
#         sender_key=sender_key,
#         recipient_key=recipient_key,
#         message=message,
#         secret=secret,
#         company_values=company_values
#     )
#     love.put()
# 
#     return love
# 
# Path: testing/util.py
# class LoggedInAdminBaseTest(LoggedInUserBaseTest):
# 
#     nosegae_user_kwargs = dict(
#         USER_ID='johndoe',
#         USER_EMAIL='johndoe@example.com',
#         USER_IS_ADMIN='1',
#     )


# Path: tests/views/task_test.py
import mock
from testing.factories.employee import create_employee
from testing.factories.love import create_love
from testing.util import LoggedInAdminBaseTest

# -*- coding: utf-8 -*-



class EmailLoveTestCase(LoggedInAdminBaseTest):

    def setUp(self):
        self.sender = create_employee(username='john')

        self.recipient = create_employee(username='jenny')