def test_no_audience(self): del self.data['audience'] form = LoginForm(self.data) eq_(form.is_valid(), True)
def test_empty(self): form = LoginForm({}) eq_(form.is_valid(), False)
def test_no_assertion(self): del self.data['assertion'] form = LoginForm(self.data) eq_(form.is_valid(), False)
def test_success(self): form = LoginForm(self.data) eq_(form.is_valid(), True)