'Test loader against a filesystem directory containing an empty
C{__init__.py} file. It should handle \'path\' and \'path/\' the same way.'

def test_directory(self):

    goodDir = filepath.FilePath(self.parent).child('goodDirectory')
    goodDir.createDirectory()
    goodDir.child('__init__.py').setContent('')
    try:
        module = runner.filenameToModule(goodDir.path)
        self.assertTrue(module.__name__.endswith('goodDirectory'))
        module = runner.filenameToModule((goodDir.path + os.path.sep))
        self.assertTrue(module.__name__.endswith('goodDirectory'))
    finally:
        goodDir.remove()
