class TestProxyTestCase(unittest.TestCase):
    def setUp(self):
        self.proxy = TestProxy()
    def tearDown(self):
        self.proxy = None
    # Trends
    def test_trends_Returns_Dict(self):
        self.assertIsInstance(self.proxy.trends(), dict)
    # Search
    def test_search_Returns_Dict(self):
        self.assertIsInstance(self.proxy.search("search"), dict)
    # UserInfo
    def test_userInfo_Returns_Dict(self):
        self.assertIsInstance(self.proxy.userInfo("username"), dict)
    # login
    def test_login_Returns_Dict(self):
        self.assertIsInstance(self.proxy.login(), dict)
    def test_login_Dict_contains_dataKey(self):
        key = 'data'
        value = self.proxy.login()
        self.assertTrue(key in value)
    def test_login_Dict_contains_errorKey(self):
        key = 'error'
        value = self.proxy.login()
        self.assertTrue(key in value)
 def setUp(self):
     self.proxy = TestProxy()