17 lines
419 B
Python
17 lines
419 B
Python
from functions.write_file import write_file
|
|
|
|
|
|
def test() -> None:
|
|
result = write_file("calculator", "lorem.txt", "wait, this isn't lorem ipsum")
|
|
print(result)
|
|
|
|
result = write_file("calculator", "pkg/morelorem.txt", "lorem ipsum dolor sit amet")
|
|
print(result)
|
|
|
|
result = write_file("calculator", "/tmp/temp.txt", "this should not be allowed")
|
|
print(result)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
test()
|