# Path: tests/base.py
# def watch(save=False, **kwargs):
#     # TODO: better defaults, when there are events available.
#     defaults = {'user': kwargs.get('user') or user(save=True),
#                 'is_active': True,
#                 'secret': 'abcdefghjk'}
#     defaults.update(kwargs)
#     w = Watch.objects.create(**defaults)
#     if save:
#         w.save()
#     return w


from django.test import TestCase
from django.template import Context, Template
from .base import watch



class Tests(TestCase):
    """Tests for our lone template tag"""

    def test_unsubscribe_instructions(self):
        """Make sure unsubscribe_instructions renders and contains the
        unsubscribe URL."""

# Path: tests/base.py
# def watch(save=False, **kwargs):
#     # TODO: better defaults, when there are events available.
#     defaults = {'user': kwargs.get('user') or user(save=True),
#                 'is_active': True,
#                 'secret': 'abcdefghjk'}
#     defaults.update(kwargs)
#     w = Watch.objects.create(**defaults)
#     if save:
#         w.save()
#     return w


# Path: tests/test_templatetags.py
from django.test import TestCase
from django.template import Context, Template
from .base import watch




class Tests(TestCase):
    """Tests for our lone template tag"""

    def test_unsubscribe_instructions(self):
        """Make sure unsubscribe_instructions renders and contains the
        unsubscribe URL."""

        w = watch(save=True)