Exemplo n.º 1
0
 def test_rendered_foundation_members_page(self):
     request = set_request(uri='/foundation-members')
     response = lists(request, 'foundation-members')
     page_part = '<tr>\n                <td style="color:#5c4f85;"><b>bob</b></td>\n                <td>Robert Barker</td>\n                <td><a href="http://maps.google.com/maps?q=City2, Country2">City2, Country2</a></td>\n            </tr>'  # noqa
     page_part = '<tr>\n                    <td style="color:#5c4f85;"><b>bob</b></td>\n                    <td>Robert Barker</td>\n                    <td><a href="http://maps.google.com/maps?q=City2, Country2">City2, Country2</a></td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)
Exemplo n.º 2
0
 def test_rendered_former_devlist_page(self):
     request = set_request(uri='/former-devlist')
     response = lists(request, 'former-devlist')
     page_part = '<tr>\n                    <td class="devname"><b>john</b></td>\n                    <td>John Smith</td>\n                    <td><a href="http://maps.google.com/maps?q=City3, Country3">City3, Country3</a></td>\n                    <td class="tableinfo">kernel, security</td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)
Exemplo n.º 3
0
 def test_foundation_members_page_returns_200(self):
     request = set_request(uri='/foundation-members')
     response = lists(request, 'foundation-members')
     self.assertEqual(response.status_code, 200)
Exemplo n.º 4
0
 def test_rendered_devlist_page(self):
     request = set_request(uri='/devlist')
     response = lists(request, 'devlist')
     page_part = '<tr>\n                    <td class="devname"><b>alice</b></td>\n                    <td>Alice Adams</td>\n                    <td><a href="http://maps.google.com/maps?q=City1, Country1">City1, Country1</a></td>\n                    <td class="tableinfo">kde, qt, cluster</td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)
Exemplo n.º 5
0
 def test_former_devlist_page_returns_200(self):
     request = set_request(uri='/former-devlist')
     response = lists(request, 'former-devlist')
     self.assertEqual(response.status_code, 200)
Exemplo n.º 6
0
 def test_rendered_foundation_members_page(self):
     request = set_request(uri="/foundation-members")
     response = lists(request, "foundation-members")
     page_part = '<tr>\n                <td style="color:#5c4f85;"><b>bob</b></td>\n                <td>Robert Barker</td>\n                <td><a href="http://maps.google.com/maps?q=City2, Country2">City2, Country2</a></td>\n            </tr>'  # noqa
     page_part = '<tr>\n                    <td style="color:#5c4f85;"><b>bob</b></td>\n                    <td>Robert Barker</td>\n                    <td><a href="http://maps.google.com/maps?q=City2, Country2">City2, Country2</a></td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)
Exemplo n.º 7
0
 def test_foundation_members_page_returns_200(self):
     request = set_request(uri="/foundation-members")
     response = lists(request, "foundation-members")
     self.assertEqual(response.status_code, 200)
Exemplo n.º 8
0
 def test_rendered_former_devlist_page(self):
     request = set_request(uri="/former-devlist")
     response = lists(request, "former-devlist")
     page_part = '<tr>\n                    <td class="devname"><b>john</b></td>\n                    <td>John Smith</td>\n                    <td><a href="http://maps.google.com/maps?q=City3, Country3">City3, Country3</a></td>\n                    <td class="tableinfo">kernel, security</td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)
Exemplo n.º 9
0
 def test_former_devlist_page_returns_200(self):
     request = set_request(uri="/former-devlist")
     response = lists(request, "former-devlist")
     self.assertEqual(response.status_code, 200)
Exemplo n.º 10
0
 def test_rendered_devlist_page(self):
     request = set_request(uri="/devlist")
     response = lists(request, "devlist")
     page_part = '<tr>\n                    <td class="devname"><b>alice</b></td>\n                    <td>Alice Adams</td>\n                    <td><a href="http://maps.google.com/maps?q=City1, Country1">City1, Country1</a></td>\n                    <td class="tableinfo">kde, qt, cluster</td>\n                </tr>'  # noqa
     self.assertIn(page_part, response.content)