diff options
author | Michael P. Soulier <msoulier@digitaltorque.ca> | 2013-09-26 21:03:23 -0400 |
---|---|---|
committer | Michael P. Soulier <msoulier@digitaltorque.ca> | 2013-09-26 21:03:23 -0400 |
commit | 0cab8c3e2d9ae5730d099dc53d28aaba9e72d254 (patch) | |
tree | 1d378dd29a1ec27564ef211423d618f75f8c03f5 /t/test.py | |
parent | 86b42d14f6547b1f98615e88c0c04c5cdd975d87 (diff) | |
download | tftpy-0cab8c3e2d9ae5730d099dc53d28aaba9e72d254.tar.gz |
Fixing a testcase.
Diffstat (limited to 't/test.py')
-rw-r--r-- | t/test.py | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -145,7 +145,7 @@ class TestTftpyState(unittest.TestCase): """Fire up a client and a server and do an upload.""" root = '/tmp' home = os.path.dirname(os.path.abspath(__file__)) - filename = '50MBFILE' + filename = '64KBFILE' input_path = os.path.join(home, filename) if not input: input = input_path @@ -183,7 +183,7 @@ class TestTftpyState(unittest.TestCase): # parent - let the server start try: time.sleep(1) - client.download('50MBFILE', + client.download('64KBFILE', output) finally: os.kill(child_pid, 15) @@ -207,11 +207,11 @@ class TestTftpyState(unittest.TestCase): self.clientServerUploadOptions({}) def testClientServerUploadFileObj(self): - fileobj = open('/tmp/50MBFILE', 'r') + fileobj = open('t/64KBFILE', 'r') self.clientServerUploadOptions({}, input=fileobj) def testClientServerUploadWithSubdirs(self): - self.clientServerUploadOptions({}, transmitname='foo/bar/50MBFILE') + self.clientServerUploadOptions({}, transmitname='foo/bar/64KBFILE') def testClientServerUploadOptions(self): for blksize in [512, 1024, 2048, 4096]: @@ -237,7 +237,7 @@ class TestTftpyState(unittest.TestCase): tftpy.TftpContextServer) ) rrq = tftpy.TftpPacketRRQ() - rrq.filename = '50MBFILE' + rrq.filename = '64KBFILE' rrq.mode = 'octet' rrq.options = {} @@ -274,7 +274,7 @@ class TestTftpyState(unittest.TestCase): tftpy.TftpContextServer) ) rrq = tftpy.TftpPacketRRQ() - rrq.filename = '50MBFILE' + rrq.filename = '64KBFILE' rrq.mode = 'octet' rrq.options = {} @@ -324,7 +324,7 @@ class TestTftpyState(unittest.TestCase): timeout, root) rrq = tftpy.TftpPacketRRQ() - rrq.filename = '50MBFILE' + rrq.filename = '64KBFILE' rrq.mode = 'octet' rrq.options = {} |