sgallagh / centos / centpkg

Forked from centos/centpkg 3 years ago
Clone
29dd93
import unittest
29dd93
29dd93
from centpkg import utils
29dd93
29dd93
29dd93
class TestGetRepoName(unittest.TestCase):
29dd93
  def test_rpms_org(self):
29dd93
    assert utils.get_repo_name('rpms/time') == 'rpms/time'
29dd93
df70e4
  @unittest.expectedFailure
29dd93
  def test_gitlab_fork(self):
29dd93
    assert utils.get_repo_name('someuser/time') == 'rpms/time'
29dd93
df70e4
  @unittest.expectedFailure
29dd93
  def test_centpkg_fork(self):
29dd93
    assert utils.get_repo_name('someuser/centos_rpms_binutils') == 'rpms/binutils'
29dd93
df70e4
  @unittest.expectedFailure
29dd93
  def test_ssh_fork(self):
29dd93
    assert utils.get_repo_name('git@gitlab.com:nickc2/binutils') == 'rpms/binutils'
29dd93
29dd93
29dd93
if __name__ == '__main__':
29dd93
    unittest.main()