# Path: whatistheplan/forms.py
# class UserForm(forms.ModelForm):
#     """Form for user signup"""
#     password = forms.CharField(widget=forms.PasswordInput())
#     class Meta: #pylint: disable=missing-docstring
#         model = User
#         fields = (
#             'username',
#             'password',
#             'email'
#         )
# 
# class UserProfileForm(forms.ModelForm):
#     """Form for user profile"""
#     class Meta: #pylint: disable=missing-docstring
#         model = UserProfile
#         fields = (
#             'name',
#             'irc',
#             'steamid',
#             'mac_address'
#         )


from django.test import TestCase, Client
from whatistheplan.forms import UserForm, UserProfileForm

class UserFormTest(TestCase):
    def setUp(self):
        self.user_form_data = {
            'username': 'sn1par_eugene',
            'password': 'bloxwich',
            'email': 'h00bastankR0x@aol.com'
        }
        self.user_profile_form_data = {
            'name': "Eugene M'TnDew",
            'mac_address': '00:00:00:00:00:00',
            'steamid': 'xXx_sn1par_eugene_420_xXx',
            'irc': 'eugene'
        }
        self.form_data = self.user_form_data.copy()
        self.form_data.update(self.user_profile_form_data)
        self.client = Client()

    def test_user_form_is_valid(self):
        """sample data is valid for user form"""

# Path: whatistheplan/forms.py
# class UserForm(forms.ModelForm):
#     """Form for user signup"""
#     password = forms.CharField(widget=forms.PasswordInput())
#     class Meta: #pylint: disable=missing-docstring
#         model = User
#         fields = (
#             'username',
#             'password',
#             'email'
#         )
# 
# class UserProfileForm(forms.ModelForm):
#     """Form for user profile"""
#     class Meta: #pylint: disable=missing-docstring
#         model = UserProfile
#         fields = (
#             'name',
#             'irc',
#             'steamid',
#             'mac_address'
#         )


# Path: tests/test_forms.py
from django.test import TestCase, Client
from whatistheplan.forms import UserForm, UserProfileForm


class UserFormTest(TestCase):
    def setUp(self):
        self.user_form_data = {
            'username': 'sn1par_eugene',
            'password': 'bloxwich',
            'email': 'h00bastankR0x@aol.com'
        }
        self.user_profile_form_data = {
            'name': "Eugene M'TnDew",
            'mac_address': '00:00:00:00:00:00',
            'steamid': 'xXx_sn1par_eugene_420_xXx',
            'irc': 'eugene'
        }
        self.form_data = self.user_form_data.copy()
        self.form_data.update(self.user_profile_form_data)
        self.client = Client()

    def test_user_form_is_valid(self):
        """sample data is valid for user form"""

        form = UserForm(data=self.user_form_data)