You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JUNIT test cases to caluculate scores of tweets using IBM Tone Analyser
"""
from EmotionController import *
import unittest
class TestEmotionController(unittest.TestCase):
def setUp(self):
self.e = EmotionController()
def testTweetEmotions(self):
data = self.e.start('Canada')
#self.assertTrue('Ontario' in data.values()['provinceName'])
self.assertTrue('provinceName' in data.keys())
def testTextEmotions(self):
data = self.e.scoreForText('#COVID19 does not even spare alcoholics. So, bust this myth and stop consuming alcohol to safeguard yourself from #Coronavirus.;Delhi Better be at home and take precautionary measures to fight against #CoronavirusPandemic. ;Poetry')