예제 #1
0
 def test_get_base_path_fedora_sup_branch(self):
     args = mock.Mock()
     args.branch = 'stein'
     args.distro = 'fedora28'
     args.rdo_mirror = 'http://trunk.rdoproject.org'
     path = main._get_base_path(args)
     self.assertEqual('http://trunk.rdoproject.org/fedora28-stein/', path)
예제 #2
0
 def test_get_base_path_fedora(self):
     args = mock.Mock()
     args.branch = 'master'
     args.distro = 'fedora'
     args.rdo_mirror = 'http://trunk.rdoproject.org'
     path = main._get_base_path(args)
     self.assertEqual('http://trunk.rdoproject.org/fedora-master/', path)
예제 #3
0
 def test_get_base_path_branch(self):
     args = mock.Mock()
     args.branch = 'liberty'
     args.distro = 'centos7'
     args.rdo_mirror = 'http://trunk.rdoproject.org'
     path = main._get_base_path(args)
     self.assertEqual('http://trunk.rdoproject.org/centos7-liberty/', path)
예제 #4
0
 def test_get_base_path_branch(self):
     args = mock.Mock()
     args.branch = 'liberty'
     args.distro = 'centos7'
     path = main._get_base_path(args)
     self.assertEqual('http://trunk.rdoproject.org/centos7-liberty/', path)
예제 #5
0
 def test_get_base_path(self):
     args = mock.Mock()
     args.branch = 'master'
     args.distro = 'centos7'
     path = main._get_base_path(args)
     self.assertEqual('http://trunk.rdoproject.org/centos7/', path)