# See the License for the specific language governing permissions and
 # limitations under the License.
 
+import platform
 import unittest
 import mock
 import fileutil
         fileutil.delete_dirs("abc")
         is_ok, f_name = fileutil.download_file_from_http("1", "abc", "1.txt")
         self.assertTrue(is_ok)
-        self.assertTrue(f_name.endswith("abc/1.txt"))
+        if 'Windows' in platform.system():
+            self.assertTrue(f_name.endswith("abc\\1.txt"))
+        else:
+            self.assertTrue(f_name.endswith("abc/1.txt"))
         fileutil.delete_dirs("abc")
 
     def test_query_job_status(self):