2013-06-20 00:23:15 -05:00
|
|
|
|
|
|
|
from mock import Mock
|
|
|
|
|
2013-07-22 21:22:18 -05:00
|
|
|
from . import TestCase
|
2013-06-20 00:23:15 -05:00
|
|
|
from rattail.pyramid import subscribers
|
|
|
|
|
|
|
|
|
|
|
|
class SubscribersTests(TestCase):
|
|
|
|
|
|
|
|
def test_before_render(self):
|
|
|
|
event = Mock()
|
|
|
|
event.__setitem__ = Mock()
|
|
|
|
subscribers.before_render(event)
|