parameters: (self)
return_statement: return tests
docstring: Returns a list of test modules in this plugin. Test modules
          are in directories called 'tests' and start with the word test.
docstring_summary: Returns a list of test modules in this plugin. Test modules
          are in directories called 'tests' and start with the word test.
docstring_tokens: Returns a list of test modules in this plugin . Test modules are in directories called tests and start with the word test .
function: def testmodules(self):
          """Returns a list of test modules in this plugin. Test modules
          are in directories called 'tests' and start with the word test."""
          if not self.location.isdir():
              return []
              
          tests = []
          for d in self.location.walkdirs("tests"):
              for f in d.walkfiles("test*"):
                  tests.append(self.location.relpathto(f).splitext()[0])
          return tests
function_tokens: def testmodules ( self ) : if not self . location . isdir ( ) : return [ ] tests = [ ] for d in self . location . walkdirs ( "tests" ) : for f in d . walkfiles ( "test*" ) : tests . append ( self . location . relpathto ( f ) . splitext ( ) [ 0 ] ) return tests