Package scapi :: Package tests :: Module scapi_tests :: Class SCAPITests
[hide private]
[frames] | no frames]

Class SCAPITests

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   SCAPITests

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
_load_config(self)
Loads the configuration by looking from
source code
 
test_connect(self)
test_connect
source code
 
test_access_token_acquisition(self)
This test is commented out because it needs user-interaction.
source code
 
test_track_creation(self) source code
 
test_track_update(self) source code
 
test_scoped_track_creation(self) source code
 
test_upload(self) source code
 
test_contact_list(self) source code
 
test_permissions(self) source code
 
test_setting_permissions(self) source code
 
test_setting_comments(self) source code
 
test_setting_comments_the_way_shawn_says_its_correct(self) source code
 
test_contact_add_and_removal(self) source code
 
test_favorites(self) source code
 
test_large_list(self) source code
 
test_filtered_list(self) source code
 
test_events(self) source code
 
test_me_having_stress(self) source code
 
test_non_global_api(self) source code
 
test_playlists(self) source code
 
test_playlist_creation(self) source code
 
test_groups(self) source code
 
test_track_creation_with_email_sharers(self) source code
 
test_track_creation_with_artwork(self) source code
 
test_oauth_get_signing(self) source code
 
test_streaming(self) source code
 
test_downloadable(self) source code
 
test_modifying_playlists(self) source code
 
test_track_deletion(self) source code
 
test_track_creation_with_updated_artwork(self) source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  CONFIG_NAME = 'test.ini'
  TOKEN = None
  SECRET = None
  CONSUMER = None
  CONSUMER_SECRET = None
  API_HOST = None
  USER = None
  PASSWORD = None
  AUTHENTICATOR = None
  RUN_INTERACTIVE_TESTS = False
  CONFIGSPEC = '\n[api]\ntoken=string\nsecret=string\nconsumer=s...
Properties [hide private]
  root
Return the properly configured root-scope.

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

_load_config(self)

source code 

Loads the configuration by looking from

  • the environment variable SCAPI_CONFIG
  • the installation location upwards until it finds test.ini
  • the current working directory upwards until it finds test.ini

Raises an error if there is no config found

test_connect(self)

source code 

test_connect

Tries to connect & performs some read-only operations.


Class Variable Details [hide private]

CONFIGSPEC

Value:
'''
[api]
token=string
secret=string
consumer=string
consumer_secret=string
api_host=string
user=string
...

Property Details [hide private]

root

Return the properly configured root-scope.

Get Method:
unreachable.root(self) - Return the properly configured root-scope.