Add local api support, fix test case

This commit is contained in:
Madison May
2014-09-24 19:51:31 -04:00
parent 6898e1ea07
commit a3d4d85412
8 changed files with 46 additions and 15 deletions
+1 -2
View File
@@ -20,8 +20,7 @@ class FullAPIRun(unittest.TestCase):
test_string = "Worst song ever."
response = sentiment(test_string)
self.assertTrue(isinstance(response, dict))
self.assertEqual(posneg_set, set(response.keys()))
self.assertTrue(isinstance(response, float))
def test_good_fer(self):
fer_set = set(['Angry', 'Sad', 'Neutral', 'Surprise', 'Fear', 'Happy'])