Exemplo n.º 1
0
 def testNameFinder(self):
     nf = NameFinder(atestmodule)
     names = nf.names()
     for name in ("Foo", "Bar", "aFunc", "anotherFunc",
                  "Foo.meth", "Foo.Nested", "Bar.bar",
                  "Foo.Nested.bar"):
         self.assert_(name in names)
     for name in ("aFunc.nestedFunc", "anotherFunc.NotFound"):
         self.assert_(name not in names)