| Total Complexity | 1 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 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 |