(self)
| 1937 | self.assertEqual(func.fulldisplayname, name) |
| 1938 | |
| 1939 | def test_fulldisplayname_meth(self): |
| 1940 | dataset = ( |
| 1941 | ("func", "func"), |
| 1942 | ("m.func", """ |
| 1943 | module m |
| 1944 | m.func |
| 1945 | """), |
| 1946 | ("T.meth", """ |
| 1947 | class T "void *" "" |
| 1948 | T.meth |
| 1949 | """), |
| 1950 | ("m.T.meth", """ |
| 1951 | module m |
| 1952 | class m.T "void *" "" |
| 1953 | m.T.meth |
| 1954 | """), |
| 1955 | ("m.T.C.meth", """ |
| 1956 | module m |
| 1957 | class m.T "void *" "" |
| 1958 | class m.T.C "void *" "" |
| 1959 | m.T.C.meth |
| 1960 | """), |
| 1961 | ) |
| 1962 | for name, code in dataset: |
| 1963 | with self.subTest(name=name, code=code): |
| 1964 | block = self.parse(code) |
| 1965 | func = block.signatures[-1] |
| 1966 | self.assertEqual(func.fulldisplayname, name) |
| 1967 | |
| 1968 | def test_depr_star_invalid_format_1(self): |
| 1969 | block = """ |
nothing calls this directly
no test coverage detected