def METHOD_NAME(self):
    # Regression test for enthought/traits#1238
    with self.create_directive() as directive:
        class_documenter = ClassDocumenter(
            directive, __name__ + ".FindTheTraits"
        )
        class_documenter.parse_name()
        class_documenter.import_object()
        self.assertTrue(
            TraitDocumenter.can_document_member(
                INSTANCEATTR, "an_int", True, class_documenter,
            )
        )
        self.assertTrue(
            TraitDocumenter.can_document_member(
                INSTANCEATTR, "another_int", True, class_documenter,
            )
        )
        self.assertFalse(
            TraitDocumenter.can_document_member(
                INSTANCEATTR, "magic_number", True, class_documenter,
            )
        )
        self.assertFalse(
            TraitDocumenter.can_document_member(
                INSTANCEATTR, "not_a_trait", True, class_documenter,
            )
        )