Updated tests

This commit is contained in:
Madison May
2014-10-06 20:24:55 -04:00
parent c4fd8ea30d
commit 0af69efaae
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -16,11 +16,11 @@ class FullAPIRun(unittest.TestCase):
self.assertEqual(political_set, set(response.keys()))
def test_posneg(self):
posneg_set = set(['Sentiment'])
test_string = "Worst song ever."
response = sentiment(test_string)
self.assertTrue(isinstance(response, float))
self.assertTrue(response < 0.5)
def test_good_fer(self):
fer_set = set(['Angry', 'Sad', 'Neutral', 'Surprise', 'Fear', 'Happy'])
+1 -1
View File
@@ -16,11 +16,11 @@ class FullAPIRun(unittest.TestCase):
self.assertEqual(political_set, set(response.keys()))
def test_posneg(self):
posneg_set = set(['Sentiment'])
test_string = "Worst song ever."
response = sentiment(test_string)
self.assertTrue(isinstance(response, float))
self.assertTrue(response < 0.5)
def test_good_fer(self):
fer_set = set(['Angry', 'Sad', 'Neutral', 'Surprise', 'Fear', 'Happy'])