1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# Copyright 2010 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
__metaclass__ = type
from lp.testing.breadcrumbs import BaseBreadcrumbTestCase
class TestCodeImportMachineBreadcrumb(BaseBreadcrumbTestCase):
"""Test breadcrumbs for an `ICodeImportMachine`."""
def test_machine(self):
machine = self.factory.makeCodeImportMachine(hostname='apollo')
expected = [
('Code Import System', 'http://code.launchpad.dev/+code-imports'),
('Machines', 'http://code.launchpad.dev/+code-imports/+machines'),
('apollo',
'http://code.launchpad.dev/+code-imports/+machines/apollo')]
self.assertBreadcrumbs(expected, machine)
|