More tests, coverage, and excluding lines from being covered

There are some lines that will never be hit in tests, excluding those
from being covered!
This commit is contained in:
Mike Helmick 2013-06-27 22:37:02 -04:00
parent 00c0bd91a6
commit acdf73a04e
6 changed files with 45 additions and 10 deletions

View file

@ -19,6 +19,16 @@ class TwythonStreamTestCase(unittest.TestCase):
self.api = MyStreamer(app_key, app_secret,
oauth_token, oauth_token_secret)
client_args = {
'headers': {
'User-Agent': '__twython__ Stream Test'
}
}
# Initialize with header for coverage checking for User-Agent
self.api_with_header = MyStreamer(app_key, app_secret,
oauth_token, oauth_token_secret,
client_args=client_args)
def test_stream_status_filter(self):
self.api.statuses.filter(track='twitter')