'A decorated test method for which the decorator has failed to set the
method\'s __name__ correctly is loaded and its name in the class scope
discovered.'

def test_loadBadDecorator(self):

    from twisted.trial.test import sample
    suite = self.loader.loadAnything(sample.DecorationTest.test_badDecorator, parent=sample.DecorationTest, qualName=['sample', 'DecorationTest', 'test_badDecorator'])
    self.assertEqual(1, suite.countTestCases())
    self.assertEqual('test_badDecorator', suite._testMethodName)
