Test for instruction pages.

This commit is contained in:
Pēteris Caune 2015-10-06 00:51:43 +03:00
parent 69001abea9
commit 14627dfce8

View File

@ -29,3 +29,10 @@ class AddChannelTestCase(TestCase):
r = self.client.post(url, form)
assert r.status_code == 400, r.status_code
def test_instructions_work(self):
self.client.login(username="alice", password="password")
for frag in ("email", "webhook", "pd", "slack", "hipchat"):
url = "/integrations/add_%s/" % frag
r = self.client.get(url)
self.assertContains(r, "Integration Settings", status_code=200)