Completed
Push — master ( da0207...5a5796 )
by Mathias
01:37
created

AdminViewTest.test_extranet()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
1
# Copyright 2013 Mathias WOLFF
2
# This file is part of pyfreebilling.
3
#
4
# pyfreebilling is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# pyfreebilling is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with pyfreebilling.  If not, see <http://www.gnu.org/licenses/>
16
17
18
from django.test import TestCase
19
20
21
class AdminViewTest(TestCase):
22
    def test_admin(self):
23
        response = self.client.get('/admin/', content_type='html/text')
24
        self.assertEqual(response.status_code, 200)
25
        self.assertContains(response, 'PyFreeBilling')
26
27
    def test_extranet(self):
28
        response = self.client.get('/extranet/', content_type='html/text')
29
        self.assertEqual(response.status_code, 200)
30
        self.assertContains(response, 'PyFreeBilling')
31