Skip to content

Commit

Permalink
add test for writing to a filename
Browse files Browse the repository at this point in the history
  • Loading branch information
kinverarity1 committed Nov 3, 2017
1 parent 359dd74 commit 4b0bf8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_write.py
Expand Up @@ -60,6 +60,13 @@ def test_write_sect_widths_12():
'''


def test_write_to_filename():
las = read(egfn("sample_write_sect_widths_12.las"))
las.write('test.las', version=1.2)
assert os.path.isfile('test.las')
os.remove('test.las')


def test_write_sect_widths_12_curves():
l = read(egfn("sample_write_sect_widths_12.las"))
s = StringIO()
Expand Down

0 comments on commit 4b0bf8e

Please sign in to comment.