# Path: models/love_link.py
# class LoveLink(ndb.Model):
#     """Models an instance of a Love Link."""
#     hash_key = ndb.StringProperty()
#     message = ndb.TextProperty()
#     recipient_list = ndb.TextProperty()
#     timestamp = ndb.DateTimeProperty(auto_now_add=True)
# 
#     @property
#     def seconds_since_epoch(self):
#         return int(mktime(self.timestamp.timetuple()))
# 
#     @property
#     def url(self):
#         return config.APP_BASE_URL + 'l/' + self.hash_key


from models import LoveLink
# -*- coding: utf-8 -*-


def create_love_link(
    hash_key='lOvEr',
    message='I <3 love links',
    recipient_list='johndoe, janedoe',
):


# Path: models/love_link.py
# class LoveLink(ndb.Model):
#     """Models an instance of a Love Link."""
#     hash_key = ndb.StringProperty()
#     message = ndb.TextProperty()
#     recipient_list = ndb.TextProperty()
#     timestamp = ndb.DateTimeProperty(auto_now_add=True)
# 
#     @property
#     def seconds_since_epoch(self):
#         return int(mktime(self.timestamp.timetuple()))
# 
#     @property
#     def url(self):
#         return config.APP_BASE_URL + 'l/' + self.hash_key


# Path: testing/factories/love_link.py
from models import LoveLink

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


def create_love_link(
    hash_key='lOvEr',
    message='I <3 love links',
    recipient_list='johndoe, janedoe',
):


    new_love_link = LoveLink(