def test_storage_append(): """Test storage layer appending to a file. """ tmpfile = tempfile.NamedTemporaryFile() storage = NetCDFStorage(tmpfile.name, mode='w') storage.close() storage = NetCDFStorage(tmpfile.name, mode='a') storage.close()
def test_storage_create(): """Test storage layer creating a new file. """ tmpfile = tempfile.NamedTemporaryFile() storage = NetCDFStorage(tmpfile.name, mode='w') storage.close()