code: def quality(self, tests, alias=None):
          
          # Gather the test s.
          # First, anything called 'all', 'All', or 'ALL'.
          # Second, anything with the name of the curve we're in now.
          # Third, anything that the alias list has for this curve.
          # (This requires a reverse look-up so it's a bit messy.)
          this_tests =\
              tests.get('each', [])+tests.get('Each', [])+tests.get('EACH', [])\
              + tests.get(self.mnemonic, [])\
              + utils.flatten_list([tests.get(a) for a in self.get_alias(alias=alias)])
          this_tests = filter(None, this_tests)
  
          # If we explicitly set zero tests for a particular key, then this
          # overrides the 'all' and 'alias' tests.
          if not tests.get(self.mnemonic, 1):
              this_tests = []
  
          return {test.__name__: test(self) for test in this_tests}
docs: Run a series of tests and return the corresponding results.
  
          Args:
              tests (list): a list of functions.
              alias (dict): a dictionary mapping mnemonics to lists of mnemonics.
  
          Returns:
              list. The results. Stick to booleans (True = pass) or ints.