Skip to content

Commit

Permalink
Tests added re #1470
Browse files Browse the repository at this point in the history
  • Loading branch information
bitprophet committed Aug 22, 2016
1 parent 09a1945 commit 0164dc6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_operations.py
Expand Up @@ -560,6 +560,23 @@ def test_directory_and_file_object_invalid(self):
"""
self._invalid_file_obj_situations('/tree')

@server()
def test_nonexistent_glob_should_not_create_empty_files(self):
path = self.path()
with settings(hide('everything'), warn_only=True):
get('/nope*.txt', path)
assert not self.exists_locally(os.path.join(path, 'nope*.txt'))

@server()
def test_nonexistent_glob_raises_error(self):
try:
with hide('everything', 'aborts'):
get('/nope*.txt', self.path())
except SystemExit as e:
assert 'No such file' in e.message
else:
assert False

@server()
def test_get_single_file_absolutely(self):
"""
Expand Down

0 comments on commit 0164dc6

Please sign in to comment.