Completed
Push — master ( a65260...307dd7 )
by Paolo
07:35
created

uid.tests.test_forms   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 20
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A OrganizationFormTest.test_form_has_fields() 0 5 1
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
"""
4
Created on Thu Nov 14 14:48:24 2019
5
6
@author: Paolo Cozzi <[email protected]>
7
"""
8
9
from django.test import TestCase
10
11
from ..forms import OrganizationForm
12
13
14
class OrganizationFormTest(TestCase):
15
    def test_form_has_fields(self):
16
        form = OrganizationForm()
17
        expected = ['name', 'address', 'country', 'URI', 'role']
18
        actual = list(field.name for field in form)
19
        self.assertSequenceEqual(expected, actual)
20