Package pike :: Package test :: Module copychunk :: Class TestServerSideCopy
[hide private]
[frames] | no frames]

Class TestServerSideCopy

source code

            object --+        
                     |        
unittest.case.TestCase --+    
                         |    
                  PikeTest --+
                             |
                            TestServerSideCopy

Nested Classes [hide private]

Inherited from PikeTest (private): _AssertErrorContext

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
_create_and_write(self, filename, content)
create / overwrite filename with content
source code
 
_open_src_dst(self, src_filename, dst_filename, src_access=None, src_disp=None, src_options=None, dst_access=None, dst_disp=None, dst_options=None) source code
 
generic_ssc_test_case(self, block, number_of_chunks, total_offset=0)
copy block in number_of_chunks, offset the destination copy by total_offset
source code
 
test_copy_small_file(self) source code
 
test_copy_big_file(self) source code
 
test_copy_multiple_chunks(self) source code
 
test_copy_max_chunks(self) source code
 
test_offset_copy_small_file(self) source code
 
test_offset_copy_big_file(self) source code
 
test_offset_copy_multiple_chunks(self) source code
 
generic_ssc_same_file_test_case(self, block, number_of_chunks, total_offset=0)
duplicate block in number_of_chunks to the same file, the copy will be total_offset from the current end of file
source code
 
test_same_small_file(self) source code
 
test_same_big_file(self) source code
 
test_same_multiple_chunks(self) source code
 
test_same_offset_small_file(self) source code
 
test_same_offset_big_file(self) source code
 
test_same_offset_multiple_chunks(self) source code
 
generic_ssc_overlap_test_case(self, block, number_of_chunks, overlap_each_block=0)
copy block in number_of_chunks, each destination block offset will be overlapped over the previous block by overlap_each_block bytes
source code
 
test_overlap_multiple_chunks(self) source code
 
test_overlap_16_chunks_1024_overlap(self) source code
 
test_overlap_15_chunks_4096_overlap(self) source code
 
generic_ssc_negative_test_case(self, src_access=None, dst_access=None, src_disp=None, dst_disp=None, src_options=None, dst_options=None, src_brl=None, dst_brl=None, exp_error=None) source code
 
test_neg_src_exc_brl(self)
Initiate copychunk when another handle has an exclusive BRL on the source file (win 8 / 2012)
source code
 
test_neg_dst_exc_brl(self)
Initiate copychunk when another handle has an exclusive BRL on the destination file (win 8 / 2012)
source code
 
test_neg_src_no_read(self)
Try to copychunk with no read access on the source file
source code
 
test_neg_dst_no_read(self)
Try to copychunk with no read access on the destination file
source code
 
test_neg_dst_no_write(self)
Try to copychunk with no write access on the destination file
source code
 
test_neg_dst_is_a_dir(self)
Try to copychunk with destination file being a directory
source code

Inherited from PikeTest: __init__, assertBufferEqual, assert_error, critical, debug, error, info, required_capabilities, required_dialect, required_share_capabilities, tree_connect, warn

Inherited from PikeTest (private): _get_decorator_attr

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Static Methods [hide private]

Inherited from PikeTest: booloption, init_once, option, smb2constoption

Class Variables [hide private]

Inherited from PikeTest: init_done

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

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.case.TestCase.setUp
(inherited documentation)

tearDown(self)

source code 

Hook method for deconstructing the test fixture after testing it.

Overrides: unittest.case.TestCase.tearDown
(inherited documentation)

test_neg_src_exc_brl(self)

source code 

Initiate copychunk when another handle has an exclusive BRL on the source file (win 8 / 2012)

Decorators:
  • @pike.test.RequireDialect(pike.smb2.DIALECT_SMB3_0)

test_neg_dst_exc_brl(self)

source code 

Initiate copychunk when another handle has an exclusive BRL on the destination file (win 8 / 2012)

Decorators:
  • @pike.test.RequireDialect(pike.smb2.DIALECT_SMB3_0)