Пример #1
0
 def test_get_repo_relative_path(self):
     directory = configuration.get_repo_relative_path(
         self.repo, self.config)
     self.assertEquals(directory, self.repo.id)
Пример #2
0
 def test_get_repo_relative_path__with_slash(self):
     cfg = self.config.__class__(dict(relative_url='/a/b'), dict())
     directory = configuration.get_repo_relative_path(self.repo, cfg)
     self.assertEquals(directory, 'a/b')
Пример #3
0
 def test_get_repo_relative_path(self):
     directory = configuration.get_repo_relative_path(self.repo, self.config)
     self.assertEquals(directory, self.repo.id)