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)
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)
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)
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)
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)