Esempio n. 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')
Esempio n. 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')
Esempio n. 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')
Esempio n. 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')