~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/pagetests/buttress/04-branch-page.txt

  • Committer: Robert Collins
  • Date: 2005-10-31 18:29:12 UTC
  • mfrom: (1102.1.126)
  • mto: (1102.1.138) (63.1.155)
  • mto: This revision was merged to the branch mainline in revision 2836.
  • Revision ID: robertc@robertcollins.net-20051031182912-5b96cbfc568d7a46
Merge ddaa and my branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
  Test that we can display the branch page for Thunderbird mainline.
 
2
 
 
3
 
 
4
  >>> print http(r"""
 
5
  ... GET /people/stevea/+branch/thunderbird/thunderbird@arch.ubuntu.com_thunderbird--MAIN--0 HTTP/1.1
 
6
  ... """)
 
7
  HTTP/1.1 200 Ok
 
8
  Content-Length: ...
 
9
  Content-Type: text/html;charset=utf-8
 
10
  <BLANKLINE>
 
11
  ...
 
12
  <title>Bazaar Branch: Mozilla Thunderbird 0.9.1</title>
 
13
  ...
 
14
  <div class="documentDescription">Bazaar import of the Mozilla Thunderbird CVS mainline.</div>
 
15
  <BLANKLINE>
 
16
  <table class="listing" style="line-height: 1.5;">
 
17
    <tbody>
 
18
      <tr style="border-top: 1px solid #8cacbb;">
 
19
        <td><b>Branch URL:</b></td>
 
20
        <td><tt><a href="http://bazaar.ubuntu.com/thunderbird@arch.ubuntu.com/thunderbird--MAIN--0">http:/&#x200B;/&#x200B;bazaar.ubuntu.com/&#x200B;thunderbird@arch.ubuntu.com/&#x200B;thunderbird--MAIN--0</a></tt></td>
 
21
      </tr>
 
22
      <tr>
 
23
        <td><b>Status:</b></td>
 
24
        <td>New</td>
 
25
      </tr>
 
26
  <BLANKLINE>
 
27
    </tbody>
 
28
  </table>
 
29
  <BLANKLINE>
 
30
  <h2>Revision History:</h2>
 
31
  <BLANKLINE>
 
32
  <table class="listing">
 
33
    <thead>
 
34
      <tr>
 
35
        <th>Date</th>
 
36
        <th>Message</th>
 
37
      </tr>
 
38
    </thead>
 
39
    <tbody>
 
40
      <tr>
 
41
        <td></td>
 
42
        <td>write mail</td>
 
43
      </tr>
 
44
      <tr>
 
45
        <td></td>
 
46
        <td>add a memory leak</td>
 
47
      </tr>
 
48
      <tr>
 
49
        <td></td>
 
50
        <td>thunderbird initial revision</td>
 
51
      </tr>
 
52
    </tbody>
 
53
  </table>
 
54
  <BLANKLINE>
 
55
  </div>
 
56
  ...
 
57
 
 
58
 
 
59
  Test that we can display the page for a branch not attached to a product.
 
60
 
 
61
 
 
62
  >>> print http(r"""
 
63
  ... GET /people/spiv/+branch/+junk/twisted@arch.ubuntu.com_twisted--trunk--0 HTTP/1.1
 
64
  ... """)
 
65
  HTTP/1.1 200 Ok
 
66
  Content-Length: ...
 
67
  Content-Type: text/html;charset=utf-8
 
68
  <BLANKLINE>
 
69
  ...
 
70
  <title>Bazaar Branch: Python Twisted 0.9.1</title>
 
71
  ...
 
72
  <div class="documentDescription">Bazaar import of the Twisted SVN trunk.</div>
 
73
  ...
 
74
 
 
75
 
 
76
  Test that we get a proper 404 when the product name is wrong.
 
77
 
 
78
 
 
79
  >>> print http(r"""
 
80
  ... GET /people/stevea/+branch/not-a-product/thunderbird@arch.ubuntu.com_thunderbird--MAIN--0 HTTP/1.1
 
81
  ... """)
 
82
  HTTP/1.1 404 Not Found
 
83
  Content-Length: ...
 
84
  Content-Type: text/html;charset=utf-8
 
85
  <BLANKLINE>
 
86
  ...
 
87
 
 
88
 
 
89
  Test that we get a proper 404 when the branch name is wrong.
 
90
 
 
91
 
 
92
  >>> print http(r"""
 
93
  ... GET /people/stevea/+branch/thunderdbird/not-a-branch HTTP/1.1
 
94
  ... """)
 
95
  HTTP/1.1 404 Not Found
 
96
  Content-Length: ...
 
97
  Content-Type: text/html;charset=utf-8
 
98
  <BLANKLINE>
 
99
  ...