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