'The I{--path} option creates a root resource which serves the
C{resource} global defined by the Python source in any child with
the C{".rpy"} extension.'

def test_rpyProcessor(self):

    (path, root) = self._pathOption()
    path.child('foo.rpy').setContent("from    twisted.web.static    import    Data\nresource    =    Data('content',    'major/minor')\n")
    child = root.getChild('foo.rpy', None)
    self.assertIsInstance(child, Data)
    self.assertEqual(child.data, 'content')
    self.assertEqual(child.type, 'major/minor')
