'findTwistedStyleProjects finds all projects underneath a particular
directory. A \'project\' is defined by the existence of a \'newsfragments\'
directory and is returned as a Project object.'

def test_findTwistedStyleProjects(self):

    baseDirectory = self.makeProjects(('foo', 2, 3, 0), ('foo.bar', 0, 7, 4))
    projects = findTwistedProjects(baseDirectory)
    self.assertProjectsEqual(projects, [Project(baseDirectory.child('foo')), Project(baseDirectory.child('foo').child('bar'))])
