summaryrefslogtreecommitdiff
path: root/t/test.py
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2013-05-15 10:17:09 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2013-05-15 10:17:09 -0400
commitf3d2fc4c62c1e64dd49adfaf8e65097eb8ea307b (patch)
tree867a9b4a794c2b847b612ebae43236f30f5b9574 /t/test.py
parent3e0a9671338067560e9c33e439ef4f5160f13647 (diff)
downloadtftpy-baserock/morph.tar.gz
Increasing test file size to 50MB and removed the assertion of a block zero,baserock/morph
as that will happen at block number rollover. Closes issue #36.
Diffstat (limited to 't/test.py')
-rw-r--r--t/test.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/t/test.py b/t/test.py
index ceeb8d5..ac63d16 100644
--- a/t/test.py
+++ b/t/test.py
@@ -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 = '100KBFILE'
+ filename = '50MBFILE'
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('100KBFILE',
+ client.download('50MBFILE',
output)
finally:
os.kill(child_pid, 15)
@@ -207,11 +207,11 @@ class TestTftpyState(unittest.TestCase):
self.clientServerUploadOptions({})
def testClientServerUploadFileObj(self):
- fileobj = open('/tmp/100KBFILE', 'r')
+ fileobj = open('/tmp/50MBFILE', 'r')
self.clientServerUploadOptions({}, input=fileobj)
def testClientServerUploadWithSubdirs(self):
- self.clientServerUploadOptions({}, transmitname='foo/bar/100KBFILE')
+ self.clientServerUploadOptions({}, transmitname='foo/bar/50MBFILE')
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 = '100KBFILE'
+ rrq.filename = '50MBFILE'
rrq.mode = 'octet'
rrq.options = {}
@@ -274,7 +274,7 @@ class TestTftpyState(unittest.TestCase):
tftpy.TftpContextServer) )
rrq = tftpy.TftpPacketRRQ()
- rrq.filename = 'foo/100KBFILE'
+ rrq.filename = 'foo/50MBFILE'
rrq.mode = 'octet'
rrq.options = {}
@@ -324,7 +324,7 @@ class TestTftpyState(unittest.TestCase):
timeout,
root)
rrq = tftpy.TftpPacketRRQ()
- rrq.filename = '100KBFILE'
+ rrq.filename = '50MBFILE'
rrq.mode = 'octet'
rrq.options = {}