# Path: payway/webmoney/forms.py
# class RequestPaymentForm(BasePaymentForm):
# 
#     LMI_PAYMENT_AMOUNT = forms.DecimalField(
#         max_digits=MAX_MONEY_DIGITS,
#         decimal_places=MAX_MONEY_PLACES,
#         label=u'{0} {1}% {2}'.format(_('sum with'), WEBMONEY_PERCENT, _('percent')),
#         widget=forms.TextInput(attrs={'readonly':'readonly'}),
#         required=True
#     )
#     LMI_SIM_MODE = forms.IntegerField(initial="0", widget=forms.HiddenInput())


from django.test import TestCase
from payway.webmoney.forms import RequestPaymentForm
# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'


class PaymentRequestFormTests(TestCase):
    def setUp(self):
        self.valid_data = {
            'LMI_PAYEE_PURSE': 'Z123412341234',
            'LMI_PAYMENT_AMOUNT': '999999.99',
            'LMI_PAYMENT_DESC': 'test payment',
            'LMI_PAYMENT_NO': '2147483647',
            'LMI_SIM_MODE': '0',
        }

    def test_valid_payment_request_form(self):

# Path: payway/webmoney/forms.py
# class RequestPaymentForm(BasePaymentForm):
# 
#     LMI_PAYMENT_AMOUNT = forms.DecimalField(
#         max_digits=MAX_MONEY_DIGITS,
#         decimal_places=MAX_MONEY_PLACES,
#         label=u'{0} {1}% {2}'.format(_('sum with'), WEBMONEY_PERCENT, _('percent')),
#         widget=forms.TextInput(attrs={'readonly':'readonly'}),
#         required=True
#     )
#     LMI_SIM_MODE = forms.IntegerField(initial="0", widget=forms.HiddenInput())


# Path: payway/webmoney/tests/forms.py
from django.test import TestCase
from payway.webmoney.forms import RequestPaymentForm

# -*- coding: UTF-8 -*-


__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'


class PaymentRequestFormTests(TestCase):
    def setUp(self):
        self.valid_data = {
            'LMI_PAYEE_PURSE': 'Z123412341234',
            'LMI_PAYMENT_AMOUNT': '999999.99',
            'LMI_PAYMENT_DESC': 'test payment',
            'LMI_PAYMENT_NO': '2147483647',
            'LMI_SIM_MODE': '0',
        }

    def test_valid_payment_request_form(self):

        form = RequestPaymentForm(data=self.valid_data)