parameters: (self, ref, max_diff=0)
return_statement: return result
docstring: :param max_diff: Maximum difference in words allowed before function declares a failed test
docstring_summary: :param max_diff: Maximum difference in words allowed before function declares a failed test
docstring_tokens: : param max_diff : Maximum difference in words allowed before function declares a failed test
function: def run_test(self, ref, max_diff=0):
          """
          :param max_diff: Maximum difference in words allowed before function declares a failed test
          """
          # get data and instantiate result object
          v1 = TextChunk(ref, self.language, self.v1)
          v2 = TextChunk(ref, self.language, self.v2)
          result = TestResult(ref.uid())
  
          result.diff = abs(v1.verse_count() - v2.verse_count())
  
          if result.diff > max_diff:
              result.passed = False
  
          return result
function_tokens: def run_test ( self , ref , max_diff = 0 ) : # get data and instantiate result object v1 = TextChunk ( ref , self . language , self . v1 ) v2 = TextChunk ( ref , self . language , self . v2 ) result = TestResult ( ref . uid ( ) ) result . diff = abs ( v1 . verse_count ( ) - v2 . verse_count ( ) ) if result . diff > max_diff : result . passed = False return result