diff options
author | Tulio Casagrande <tuliocasagrande@gmail.com> | 2017-01-04 17:55:25 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-04 17:55:25 -0200 |
commit | f60c15ff047a2d96210e36b194f2a188b63ccbaf (patch) | |
tree | 1f24e9cff43026612d1079ae747a432702b739f9 /service/test | |
parent | eadeca57b9dbddd2f5bd0e859b145cfbe2f616a4 (diff) | |
parent | 391d2ff36f837ec293f4772efd7f6d64083004cd (diff) |
Merge pull request #900 from bwagnerr/fix_test_site
Fixed mockito conflict with zope
Diffstat (limited to 'service/test')
-rw-r--r-- | service/test/unit/config/test_site.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/service/test/unit/config/test_site.py b/service/test/unit/config/test_site.py index 6911b4a5..63ac9f1a 100644 --- a/service/test/unit/config/test_site.py +++ b/service/test/unit/config/test_site.py @@ -1,10 +1,11 @@ from twisted.trial import unittest -from mockito import mock +from mock import MagicMock from pixelated.config.site import PixelatedSite from twisted.protocols.basic import LineReceiver class TestPixelatedSite(unittest.TestCase): + def test_add_security_headers(self): request = self.create_request() request.process() @@ -36,7 +37,7 @@ class TestPixelatedSite(unittest.TestCase): def create_request(self): channel = LineReceiver() - channel.site = PixelatedSite(mock()) + channel.site = PixelatedSite(MagicMock()) request = PixelatedSite.requestFactory(channel=channel, queued=True) request.method = "GET" request.uri = "localhost" |