1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
from django.test import TestCase
6
from offspring.config import get_configuration
7
from offspring.web.queuemanager.templatetags.lexbuilder_helpers import (
11
config = get_configuration()
13
class LexbuilderHelpersTemplateTagTests(TestCase):
15
def test_link_results(self):
16
base_uri = config.get("web", "build_results_uri")
17
project_name = "foobar"
20
expected_link = "%s/%s/%s/%s" % (
21
base_uri, project_name, build_date, build_id)
23
link_results(project_name, "%s-%s" % (build_date, build_id)),