示例#1
0
 def test_getDirName_withSlashes_replacedByDot(self):
     profile = Profile('user/repo')
     self.assertEquals(profile.getDirName(), 'user.repo')
     profile = Profile('user/prefix.repo')
     self.assertEquals(profile.getDirName(), 'user.prefix.repo')
示例#2
0
 def test_getDirName_withSlashes_replacedByDot(self):
     profile = Profile('user/repo')
     self.assertEquals(profile.getDirName(), 'user.repo')
     profile = Profile('user/prefix.repo')
     self.assertEquals(profile.getDirName(), 'user.prefix.repo')
示例#3
0
 def test_getDirName_withoutSlashes_isUnchanged(self):
     profile = Profile('repo')
     self.assertEquals(profile.getDirName(), 'repo')
     profile = Profile('prefix.repo')
     self.assertEquals(profile.getDirName(), 'prefix.repo')
示例#4
0
 def test_getDirName_withoutSlashes_isUnchanged(self):
     profile = Profile('repo')
     self.assertEquals(profile.getDirName(), 'repo')
     profile = Profile('prefix.repo')
     self.assertEquals(profile.getDirName(), 'prefix.repo')