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

AdminViewTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %
Metric Value
wmc 2
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_admin() 0 4 1
A test_extranet() 0 4 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