# Path: testing/factories/love_link.py
# def create_love_link(
#     hash_key='lOvEr',
#     message='I <3 love links',
#     recipient_list='johndoe, janedoe',
# ):
# 
#     new_love_link = LoveLink(
#         hash_key=hash_key,
#         message=message,
#         recipient_list=recipient_list,
#     )
#     new_love_link.put()
# 
#     return new_love_link


import mock
import unittest
from testing.factories import create_love_link
# -*- coding: utf-8 -*-



class LoveLinkTest(unittest.TestCase):
    # enable the datastore stub
    nosegae_datastore_v3 = True

    @mock.patch('models.love_link.config')
    def test_url(self, mock_config):
        mock_config.APP_BASE_URL = 'http://foo.io/'


# Path: testing/factories/love_link.py
# def create_love_link(
#     hash_key='lOvEr',
#     message='I <3 love links',
#     recipient_list='johndoe, janedoe',
# ):
# 
#     new_love_link = LoveLink(
#         hash_key=hash_key,
#         message=message,
#         recipient_list=recipient_list,
#     )
#     new_love_link.put()
# 
#     return new_love_link


# Path: tests/models/love_link_test.py
import mock
import unittest
from testing.factories import create_love_link

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



class LoveLinkTest(unittest.TestCase):
    # enable the datastore stub
    nosegae_datastore_v3 = True

    @mock.patch('models.love_link.config')
    def test_url(self, mock_config):
        mock_config.APP_BASE_URL = 'http://foo.io/'


        link = create_love_link(hash_key='lOvEr')