Done with implementation of twython-requests, unit testing remaining
This commit is contained in:
parent
d3c364601b
commit
7334556248
3 changed files with 347 additions and 18 deletions
17
twython/tests.py
Normal file
17
twython/tests.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#! /usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import unittest
|
||||
import json
|
||||
import requests
|
||||
|
||||
import twythonrequests
|
||||
|
||||
class TestTwythonRequests(unittest.TestCase):
|
||||
def test_search(self):
|
||||
twitter = twythonrequests.Twython()
|
||||
result = twitter.search(q='python')
|
||||
self.assertTrue(result['results'])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue