Open thirteenpylons opened 2 years ago
Filename must be saved with current extension after first use. When using ffs the extension is missing if not explicitly defined upon second instance.
result = ffs.Manage("jan")
assert result.name() == "jan.txt" E AssertionError: assert 'jan' == 'jan.txt' E - jan.txt E + jan
assert result.name() == "jan.txt"
E AssertionError: assert 'jan' == 'jan.txt' E - jan.txt E + jan
Within the same scope the file extension is ignored with first use pushing ".txt" by default if defined:
result = ffs.Manage("this") assert result.name() == "this.txt" result = ffs.Manage("that.py")
assert result.name() == "that.py" E AssertionError: assert 'that.py.txt' == 'that.py' E - that.py E + that.py.txt E ? ++++
assert result.name() == "that.py"
E AssertionError: assert 'that.py.txt' == 'that.py' E - that.py E + that.py.txt E ? ++++
result = ffs.Manage("this")
assert result.name() == "this.txt" E AssertionError: assert 'this' == 'this.txt' E - this.txt E + this
assert result.name() == "this.txt"
E AssertionError: assert 'this' == 'this.txt' E - this.txt E + this
Using Python 3.8.3
Filename must be saved with current extension after first use. When using ffs the extension is missing if not explicitly defined upon second instance.
result = ffs.Manage("jan")
Within the same scope the file extension is ignored with first use pushing ".txt" by default if defined:
FIRST PASS
result = ffs.Manage("this") assert result.name() == "this.txt" result = ffs.Manage("that.py")
SECOND PASS