nltk.test.unit.test_twitter_auth module

Tests for static parts of Twitter package

nltk.test.unit.test_twitter_auth.auth()[source]
class nltk.test.unit.test_twitter_auth.TestCredentials[source]

Bases: object

Tests that Twitter credentials from a file are handled correctly.

classmethod setup_class()[source]
test_environment(auth)[source]

Test that environment variable has been read correctly.

test_scenarios_that_should_raise_errors(kwargs, auth)[source]

Various scenarios that should raise errors

test_correct_file(auth)[source]

Test that a proper file succeeds and is read correctly