'Test a valid login.'

def test_login(self):

    response = self.client.post(reverse('users.login'), {'username': self.u.username, 'password': 'testpass'})
    eq_(302, response.status_code)
    eq_((('http://testserver' + reverse('home', locale=settings.LANGUAGE_CODE)) + '?fpa=1'), response['location'])
