def METHOD_NAME(self):
    j = Job(application=Executable(exe=File(self.filepath), args=[]),
            backend=Dirac(), outputfiles=[DiracFile('*.root')])
    j.submit()
    sleep_until_completed(j)
    self.assertEqual(len(j._impl.outputfiles), 1)
    self.assertEqual(j._impl.outputfiles[0].namePattern, '*.root')
    self.assertEqual(len(j._impl.outputfiles[0].subfiles), 2)
    for df in j._impl.outputfiles[0].subfiles:
        self.assertIn(df.namePattern, ['a.root', 'b.root'])
        df.remove()