code: def test_analyze(self):
      p1 = "I feel great this morning."
      n1 = "This is a terrible car."
      p1_result = self.analyzer.analyze(p1)
      assert_equal(p1_result[0], "pos")
      assert_equal(self.analyzer.analyze(n1)[0], "neg")
      # The 2nd item should be the probability that it is positive
      assert_true(isinstance(p1_result[1], float))
      # 3rd item is probability that it is negative
      assert_true(isinstance(p1_result[2], float))
      assert_about_equal(p1_result[1] + p1_result[2], 1)
      assert_equal(p1_result.classification, p1_result[0])
      assert_equal(p1_result.p_pos, p1_result[1])
      assert_equal(p1_result.p_neg, p1_result[2])
  
file_path: TextBlob/tests/test_sentiments.py
imports: from __future__ import unicode_literals
  import unittest
  from nose.tools import *
  from nose.plugins.attrib import attr
  from textblob.sentiments import PatternAnalyzer, NaiveBayesAnalyzer, DISCRETE, CONTINUOUS
label_desc: Use image node_id 3 for calling the TestNaiveBayesAnalyzer obj's underlying member method code with example usage: obj.test_analyze() without return types