<commit_before>from nose.tools import eq_

from amo.tests import TestCase
from mkt.account.forms import FeedbackForm, LoginForm
from mkt.site.tests.test_forms import PotatoCaptchaTestCase


class TestFeedbackForm(PotatoCaptchaTestCase):

    def test_success(self):
        self.data['feedback'] = 'yolo'
        form = FeedbackForm(self.data, request=self.request)
        eq_(form.is_valid(), True)

    def test_error_feedback_required(self):
        form = FeedbackForm(self.data, request=self.request)
        eq_(form.is_valid(), False)
        eq_(form.errors, {'feedback': [u'This field is required.']})
<commit_msg>Remove all leftovers from old FeedbackResource (bug 910556)<commit_after>from nose.tools import eq_

from amo.tests import TestCase
from mkt.account.forms import LoginForm

{'fraction_non_alphanumeric': 0.09673366834170855, 'fraction_numerical': 0.007537688442211055, 'mean_word_length': 4.458904109589041, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4309282', 'n_tokens_mistral': 258, 'n_tokens_neox': 239, 'n_words': 60}