From 14627dfce8e5c55e21a284abc22358e011a8999d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 6 Oct 2015 00:51:43 +0300 Subject: [PATCH] Test for instruction pages. --- hc/front/tests/test_add_channel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hc/front/tests/test_add_channel.py b/hc/front/tests/test_add_channel.py index 0ddc5f58..31d45c65 100644 --- a/hc/front/tests/test_add_channel.py +++ b/hc/front/tests/test_add_channel.py @@ -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)