'Check that the ``SigninForm`` requires both identification and password'

def test_signin_form(self):

    invalid_data_dicts = [{u'data': {u'identification': u'', u'password': u'inhalefish'}, u'error': (u'identification', [u'Either    supply    us    with    your    email    or    username.'])}, {u'data': {u'identification': u'john', u'password': u'inhalefish'}, u'error': (u'__all__', [u'Please    enter    a    correct    username    or    email    and    password.    Note    that    both    fields    are    case-sensitive.'])}]
    with override(u'en'):
        for invalid_dict in invalid_data_dicts:
            form = forms.AuthenticationForm(data=invalid_dict[u'data'])
            self.assertFalse(form.is_valid())
            self.assertEqual(form.errors[invalid_dict[u'error'][0]], invalid_dict[u'error'][1])
    valid_data_dicts = [{u'identification': u'john', u'password': u'blowfish'}, {u'identification': u'john@example.com', u'password': u'blowfish'}]
    for valid_dict in valid_data_dicts:
        form = forms.AuthenticationForm(valid_dict)
        self.assertTrue(form.is_valid())
