tailbone/tests/test_subscribers.py

18 lines
341 B
Python
Raw Normal View History

# -*- coding: utf-8; -*-
from __future__ import unicode_literals, absolute_import
2013-06-20 00:23:15 -05:00
from unittest import TestCase
2013-06-20 00:23:15 -05:00
from mock import Mock
2013-09-01 09:27:47 -05:00
from tailbone import subscribers
2013-06-20 00:23:15 -05:00
class SubscribersTests(TestCase):
def test_before_render(self):
event = Mock()
event.__setitem__ = Mock()
subscribers.before_render(event)