Esempio n. 1
0
 def test_normalize(self):
     """
     Tests get_shotgun_storage_key
     """
     if sys.platform == "win32":
         self.assertEqual(ShotgunPath.normalize("C:/foo\\bar\\"), r"C:\foo\bar")
     else:
         self.assertEqual(ShotgunPath.normalize("/foo\\bar/"), "/foo/bar")
Esempio n. 2
0
 def test_normalize(self):
     """
     Tests get_shotgun_storage_key
     """
     if sys.platform == "win32":
         self.assertEqual(ShotgunPath.normalize("C:/foo\\bar\\"),
                          r"C:\foo\bar")
     else:
         self.assertEqual(ShotgunPath.normalize("/foo\\bar/"), "/foo/bar")
Esempio n. 3
0
 def test_normalize(self):
     """
     Tests get_shotgun_storage_key
     """
     if is_windows():
         self.assertEqual(ShotgunPath.normalize("C:/foo\\bar\\"),
                          r"C:\foo\bar")
     else:
         self.assertEqual(ShotgunPath.normalize("/foo\\bar/"), "/foo/bar")