1 # -*- coding: utf-8 -*-
2 # Copyright (C) 2017-2019 by the Free Software Foundation, Inc.
4 # This file is part of Postorius.
6 # Postorius is free software: you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation, either version 3 of the License, or (at your option)
11 # Postorius is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 # You should have received a copy of the GNU General Public License along with
17 # Postorius. If not, see <http://www.gnu.org/licenses/>.
20 from django
.test
import TestCase
22 from postorius
.forms
.user_forms
import UserPreferences
25 class UserPreferencesTest(TestCase
):
27 def test_form_fields_valid(self
):
28 form
= UserPreferences({
29 'acknowledge_posts': 'True',
30 'hide_address': 'True',
31 'receive_list_copy': 'False',
32 'receive_own_postings': 'False',
34 self
.assertTrue(form
.is_valid())