Exemplo 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")
Exemplo 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")
Exemplo 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")