'Any child of the I{twisted.test} package is hidden.'

def test_privacyClassChildTestModule(self):

    sut = TwistedSystem()
    twistedPackage = model.Package(system=sut, name='twisted', docstring='ignored', parent=None)
    twistedTestPackage = model.Package(system=sut, name='test', docstring='ignored', parent=twistedPackage)
    twistedAnyTestModule = model.Module(system=sut, name='other_child', docstring='ignored', parent=twistedTestPackage)
    result = sut.privacyClass(twistedAnyTestModule)
    self.assertIs(result, model.PrivacyClass.HIDDEN)
