def test_package(self):
        packageDir = self.mktemp()
        os.makedirs(os.path.join(packageDir, 'Foo', 'Baz'))

        def childPath(*a):
            path = os.path.join(packageDir, *a)
            file(path, 'w').close()
            return path

        expected = {
            u'Foo': childPath('Foo', '__init__.' + self.moduleExtension),
            u'Foo.Bar': childPath('Foo', 'Bar.' + self.moduleExtension),
            u'Foo.Baz': util.sibpath(athena.__file__, 'empty-module.' + self.moduleExtension),
            u'Foo.Baz.Quux': childPath('Foo', 'Baz', 'Quux.' + self.moduleExtension)}

        childPath('Foo', '.foo.' + self.moduleExtension)
        os.mkdir(os.path.join(packageDir, 'Foo', '.test'))
        childPath('Foo', '.test', 'Foo.' + self.moduleExtension)
        childPath('Foo', 'Bar.other')
        childPath('Foo', 'Zot.other')

        package = self.packageFactory(packageDir)
        for module, path in expected.iteritems():
            m = package.mapping.pop(module)
            self.assertEquals(m, path)
        self.assertEquals(package.mapping, {})
Given a (JSON-formatted) log line where the message is a Marathon log line,
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/_AutoPackageTestMixin.test_package--crossover with--dataset/ETHPy150Open Yelp/paasta/paasta_tools/cli/cmds/logs.py/marathon_log_line_passes_filter