old_contents: from eduid_signup.testing import FunctionalTests
  
  
  class HomeViewTests(FunctionalTests):
  
      def test_home(self):
          res = self.testapp.get('/')
          self.assertEqual(res.status, '200 OK')
          res.mustcontain(
              'Welcome to eduID!',
              'Create an account that will allow you access to all Sweedish Universities.',
              'Sign up today'
          )
  
      def test_sign_up_with_bad_email(self):
          res = self.testapp.post('/', {'email': 'a@com'})
          self.assertEqual(res.status, '200 OK')
          res.mustcontain('Email is not valid')
  
      def test_sign_up_with_good_email(self):
          res = self.testapp.post('/', {'email': 'foo@example.com'})
          self.assertEqual(res.status, '302 Found')
          self.assertEqual(res.location, 'http://localhost/success/')
  
  
  class SuccessViewTests(FunctionalTests):
  
      def test_success(self):
          res = self.testapp.get('/success/')
          self.assertEqual(res.status, '200 OK')
  
new_contents: from eduid_signup.testing import FunctionalTests
  
  
  class HomeViewTests(FunctionalTests):
  
      def test_home(self):
          res = self.testapp.get('/')
          self.assertEqual(res.status, '200 OK')
          res.mustcontain(
              'Welcome to eduID!',
              'Create an account that will allow you access to all Sweedish Universities.',
              'Sign up with your email',
              'Sign up with Facebook',
              'Sign up with Google',
          )
  
      def test_sign_up_with_bad_email(self):
          res = self.testapp.post('/', {'email': 'a@com'})
          self.assertEqual(res.status, '200 OK')
          res.mustcontain('Email is not valid')
  
      def test_sign_up_with_good_email(self):
          res = self.testapp.post('/', {'email': 'foo@example.com'})
          self.assertEqual(res.status, '302 Found')
          self.assertEqual(res.location, 'http://localhost/success/')
  
  
  class SuccessViewTests(FunctionalTests):
  
      def test_success(self):
          res = self.testapp.get('/success/')
          self.assertEqual(res.status, '200 OK')
  
subject: Fix test