Here we have the piece: I am not sure, if I am doing it properly, one line is broken up after "+", the next one is artificially braced by "( )" to be able to break it up.
The idea behind the code itself is py.test checking, if the folder is properly ready and if the files are also existing... to be sure that the testing itself can run...
(A subquestion would be: "interesting to see how you doing such things...")
class TestFilewise():
def setup(self):
import os
self.fixture_dir = ( os.path.abspath(os.path.dirname(__file__)) +
"/fixtures/" )
assert os.access( self.fixture_dir, os.F_OK ), (
"Oops! the fixture dir should be here " + self.fixture_dir )
assert os.access( self.fixture_dir+"profiles-source1.csv", os.F_OK )
So how to do the line-break up and stay most readable?
Seen How to break a line of chained methods in Python? and still unsure...