|
@@ -28,6 +28,12 @@ class TestContactPage(TestCase):
|
|
|
|
|
|
def test_chat_view(self):
|
|
def test_chat_view(self):
|
|
isp = ISPInfo.objects.create(name='test', email='foo@example.com', )
|
|
isp = ISPInfo.objects.create(name='test', email='foo@example.com', )
|
|
|
|
+
|
|
|
|
+ # Without chatroom
|
|
|
|
+ response = self.client.get('/members/contact/')
|
|
|
|
+ self.assertEqual(response.status_code, 200)
|
|
|
|
+
|
|
|
|
+ # With chatroom
|
|
ChatRoom.objects.create(
|
|
ChatRoom.objects.create(
|
|
isp=isp, url='irc://irc.example.com/#chan')
|
|
isp=isp, url='irc://irc.example.com/#chan')
|
|
|
|
|