Package elisa :: Package plugins :: Package base :: Package tests :: Module test_local_media :: Class TestLocalMedia
[hide private]
[frames] | no frames]

Class TestLocalMedia

source code


Nested Classes [hide private]
  component_class
This class implements local filesystem support
Instance Methods [hide private]
 
__init__(self, methodName='runTest') source code
 
setUp(self) source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
get_data_uris(self, root, deep=False) source code
list of MediaUris for testing
get_valid_uris(self)
Return a list of validated URIs used by the generic tests.
source code
 
get_data_uri(self, filename='') source code
 
_touch(self, path) source code
 
test_get_direct_children(self) source code
 
test_monitor_uri(self) source code
 
test_copy(self) source code
 
test_move(self) source code
 
test_delete(self) source code
 
test_next_location(self) source code
 
test_get_media_type(self) source code

Inherited from core.tests.test_media_provider.TestMediaProvider: test_get_real_uri, test_scannable_uri_schemes, test_supported_uri_schemes

Inherited from core.tests.component_test_case.ComponentTestCase: get_component

Inherited from core.tests.elisa_test_case.ElisaTestCase: check_called, debug, info

Inherited from twisted.trial.unittest.TestCase: __call__, deferSetUp, deferSetUpClass, deferTearDown, deferTearDownClass, deferTestMethod, flushLoggedErrors, getSkip, getSuppress, getTimeout, getTodo, mktemp, run, runTest, shortDescription, visit

Inherited from twisted.trial.unittest.TestCase (private): _cbDeferTestMethod, _classCleanUp, _cleanUp, _deprecateReactor, _ebDeferSetUp, _ebDeferSetUpClass, _ebDeferTearDown, _ebDeferTestMethod, _ebTearDownClass, _getReason, _installObserver, _isFirst, _isLast, _makeReactorMethod, _prepareClassFixture, _removeObserver, _run, _undeprecateReactor, _wait

Inherited from twisted.trial.unittest._Assertions: assertAlmostEqual, assertAlmostEquals, assertApproximates, assertEqual, assertEquals, assertFailure, assertFalse, assertIdentical, assertIn, assertNot, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIdentical, assertNotIn, assertNotSubstring, assertRaises, assertSubstring, assertTrue, assert_, fail, failIf, failIfAlmostEqual, failIfAlmostEquals, failIfEqual, failIfEquals, failIfIdentical, failIfIn, failIfSubstring, failUnless, failUnlessAlmostEqual, failUnlessAlmostEquals, failUnlessApproximates, failUnlessEqual, failUnlessEquals, failUnlessFailure, failUnlessFalse, failUnlessIdentical, failUnlessIn, failUnlessRaises, failUnlessSubstring, failUnlessTrue

Inherited from unittest.TestCase: __providedBy__, __repr__, __str__, countTestCases, defaultTestResult, id

Inherited from unittest.TestCase (private): _exc_info

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

Inherited from extern.log.log.Loggable: doLog, error, log, logFunction, logObjectName, warning, warningFailure

Class Methods [hide private]

Inherited from twisted.trial.unittest.TestCase (private): _initInstances

Class Variables [hide private]

Inherited from core.tests.component_test_case.ComponentTestCase: component_path, logged

Inherited from core.tests.elisa_test_case.ElisaTestCase: default_config, load_all_plugins

Inherited from twisted.trial.unittest.TestCase: __implemented__, __provides__

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from twisted.trial.unittest.TestCase: failureException, forceGarbageCollection, skip, suppress, timeout, todo

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, methodName='runTest')
(Constructor)

source code 
Overrides: core.tests.component_test_case.ComponentTestCase.__init__

setUp(self)

source code 
Overrides: core.tests.test_media_provider.TestMediaProvider.setUp

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: core.tests.component_test_case.ComponentTestCase.tearDown

get_valid_uris(self)

source code 
Return a list of validated URIs used by the generic tests.
Returns: list of MediaUris for testing
Overrides: core.tests.test_media_provider.TestMediaProvider.get_valid_uris
(inherited documentation)

test_monitor_uri(self)

source code 
Overrides: core.tests.test_media_provider.TestMediaProvider.test_monitor_uri

test_get_media_type(self)

source code 
Overrides: core.tests.test_media_provider.TestMediaProvider.test_get_media_type