From c7bb69a0b06cc47f6c9c71774eab58e03ba037ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Thu, 21 Apr 2016 20:12:00 +0100 Subject: [PATCH] consistent naming --- gluon/tests/test_recfile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gluon/tests/test_recfile.py b/gluon/tests/test_recfile.py index e2e08945..ea94c210 100644 --- a/gluon/tests/test_recfile.py +++ b/gluon/tests/test_recfile.py @@ -23,7 +23,7 @@ class TestRecfile(unittest.TestCase): def tearDown(self): shutil.rmtree('tests') - def testgeneration(self): + def test_generation(self): for k in range(10): teststring = 'test%s' % k filename = os.path.join('tests', str(uuid.uuid4()) + '.test') @@ -48,7 +48,7 @@ class TestRecfile(unittest.TestCase): self.assertFalse(is_there) for k in range(10): teststring = 'test%s' % k - filename = os.path.join('tests', str(uuid.uuid4()) , str(uuid.uuid4()) + '.test') + filename = os.path.join('tests', str(uuid.uuid4()), str(uuid.uuid4()) + '.test') with recfile.open(filename, "w") as g: g.write(teststring) self.assertEqual(recfile.open(filename, "r").read(), teststring) @@ -70,6 +70,5 @@ class TestRecfile(unittest.TestCase): self.assertRaises(IOError, recfile.open, filename, "r") - if __name__ == '__main__': unittest.main()