Skip to content

Commit

Permalink
assert some interesting stuff about the twistd plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
glyph committed Feb 26, 2015
1 parent 1345cfc commit b71c72f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mimic/test/test_tap.py
Expand Up @@ -18,6 +18,8 @@
from twisted.python.filepath import FilePath

from twisted.trial.unittest import SynchronousTestCase
from twisted.plugins.mimic import mimicService
from twisted.application.service import IServiceMaker

from mimic.core import MimicCore
from mimic.tap import Options, makeService
Expand Down Expand Up @@ -133,3 +135,12 @@ def fromPlugins(cls, clock):
# Grab the global reactor just for comparison.
from twisted.internet import reactor as real_reactor
self.assertIdentical(CheckClock.clock, real_reactor)

def test_plugin(self):
"""
:obj:`twisted.plugins.mimic.mimicService` is a twistd plugin
referencing `mimic.tap.makeService`.
"""
self.assertTrue(IPlugin.providedBy(mimicService))
self.assertTrue(IServiceMaker.providedBy(mimicService))
self.assertIs(mimicService.makeService, makeService)

0 comments on commit b71c72f

Please sign in to comment.