consistent naming

This commit is contained in:
Leonel Câmara
2016-04-21 20:12:00 +01:00
parent 8b402b491c
commit c7bb69a0b0
+2 -3
View File
@@ -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()