diff options
author | CruiseDevice | 2019-02-18 16:52:35 +0530 |
---|---|---|
committer | CruiseDevice | 2019-02-18 18:16:13 +0530 |
commit | 4b535014a5af1612a81e8ee691e47ef154fa6cae (patch) | |
tree | 9e6a3f33c4cfcf5cc97774706e7046c37f680cd7 /yaksh/test_models.py | |
parent | 4fc937e5d552836c028b46196b47436457bcb6da (diff) | |
download | online_test-4b535014a5af1612a81e8ee691e47ef154fa6cae.tar.gz online_test-4b535014a5af1612a81e8ee691e47ef154fa6cae.tar.bz2 online_test-4b535014a5af1612a81e8ee691e47ef154fa6cae.zip |
Remove stray print statement and add additional check during tearDown
Diffstat (limited to 'yaksh/test_models.py')
-rw-r--r-- | yaksh/test_models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/test_models.py b/yaksh/test_models.py index 53ee656..374fb29 100644 --- a/yaksh/test_models.py +++ b/yaksh/test_models.py @@ -2144,9 +2144,9 @@ class FileUploadTestCases(unittest.TestCase): ) def test_get_file_name(self): - print((self.file_upload.file.path)) self.assertEqual(self.file_upload.get_filename(), self.filename) def tearDown(self): - os.remove(self.file_upload.file.path) + if os.path.isfile(self.file_upload.file.path): + os.remove(self.file_upload.file.path) self.file_upload.delete() |