https://codereview.appspot.com/6750055/diff/1/juju/charm/tests/test_directory.py#newcode215
juju/charm/tests/test_directory.py:215: with
tempfile.NamedTemporaryFile(dir='/tmp') as external_file:
Use the makeFile method on our TestCase; it constructs a temporary file
as above, but also ensures it is deleted at the end of the test. This
method is used throughout our tests, so this will help with following
current coding conventions.
+1, LGTM, with the following coding convention minor addressed.
https:/ /codereview. appspot. com/6750055/ diff/1/ juju/charm/ tests/test_ directory. py tests/test_ directory. py (right):
File juju/charm/
https:/ /codereview. appspot. com/6750055/ diff/1/ juju/charm/ tests/test_ directory. py#newcode215 tests/test_ directory. py:215: with NamedTemporaryF ile(dir= '/tmp') as external_file:
juju/charm/
tempfile.
Use the makeFile method on our TestCase; it constructs a temporary file
as above, but also ensures it is deleted at the end of the test. This
method is used throughout our tests, so this will help with following
current coding conventions.
external_file = self.makeFile()
https:/ /codereview. appspot. com/6750055/ diff/1/ juju/charm/ tests/test_ directory. py#newcode224 tests/test_ directory. py:224: with NamedTemporaryF ile(dir= '/tmp') as external_file:
juju/charm/
tempfile.
Ditto.
https:/ /codereview. appspot. com/6750055/