コード例 #1
0
ファイル: tests.py プロジェクト: vaibhav-rbs/Project
    def test_get_upload_file_name(self):
        filename = "testfile"
        path = "uploaded_files/%s_%s" % (str(time()).replace(".", "_"), filename)

        created_path = get_upload_file_name(self, filename)

        self.assertEqual(path, created_path)
コード例 #2
0
ファイル: tests.py プロジェクト: ussimandias/django_test
 def test_get_upload_file_name(self):
     filename = "Cheese.txt"
     path = "uploaded_files/%s_%s" % (str(time()).replace('.','_'),
                                      filename)
     
     created_path = get_upload_file_name(self, filename)
     self.assertEqual(path, created_path)
コード例 #3
0
ファイル: tests.py プロジェクト: drobertazzi/django
 def test_get_upload_file_name(self):
     filename = "Cheese.txt"
     path = "uploaded_files/%s_%s" % (str(time()).replace('.', '_'), filename)
     
     created_path = get_upload_file_name(self, filename)
     
     self.assertEqual(path, created_path)
コード例 #4
0
ファイル: tests.py プロジェクト: johnnycamby/pythonSamples-
 def test_get_upload_file_name(self):
     filename = "test.txt"
     path = 'uploads/%s_%s' % (str(time()).replace('.','_'), filename)
     create_path = get_upload_file_name(self, filename)
     #self.assertEqual(path, create_path)
     self.assertNotEqual(path, create_path)