'Ensure a warning is raised upon class definition to suggest renaming
the faulty method.'

def test_class_definition_warnings(self):

    with warnings.catch_warnings(record=True) as recorded:
        warnings.simplefilter(u'always')
        class Manager(six.with_metaclass(RenameManagerMethods), ):
            def old(self):
                pass
        self.assertEqual(len(recorded), 1)
        msg = str(recorded[0].message)
        self.assertEqual(msg, u'`Manager.old`    method    should    be    renamed    `new`.')
