aboutsummaryrefslogtreecommitdiff
path: root/tests/test_collection.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r--tests/test_collection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py
index eb57fb0..0d300d2 100644
--- a/tests/test_collection.py
+++ b/tests/test_collection.py
@@ -387,13 +387,13 @@ class testCollectionCreation(unittest.TestCase):
self.assertTrue(created.settings['git'])
shutil.rmtree(tmpdir)
- def do_nothing(*args, **kwargs):
+ def _do_nothing(*args, **kwargs):
# A function that does nothing instead of editing a file
pass
def test_init_edit_file(self):
tmpdir = tempfile.mkdtemp()
- collection = lesana.Collection.init(tmpdir, edit_file=self.do_nothing)
+ collection = lesana.Collection.init(tmpdir, edit_file=self._do_nothing)
self.assertIsInstance(collection, lesana.Collection)
self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.git')))
self.assertTrue(os.path.isdir(os.path.join(tmpdir, '.lesana')))
@@ -505,7 +505,7 @@ class testCollectionCreation(unittest.TestCase):
tmpdir = tempfile.mkdtemp()
collection = lesana.Collection.init(
tmpdir,
- edit_file=self.do_nothing,
+ edit_file=self._do_nothing,
settings={
'name': 'A different name',
'fields': [