old_contents: try:
      import unittest2 as unittest
  except ImportError:
      import unittest
  
  from splinter import Browser
  from fake_webapp import EXAMPLE_APP
  from base import WebDriverTests
  
  
  class PhantomJSBrowserTest(WebDriverTests, unittest.TestCase):
      @classmethod
      def setUpClass(cls):
          cls.browser = Browser("phantomjs")
  
      @classmethod
      def tearDownClass(cls):
          cls.browser.quit()
  
      def setUp(self):
          self.browser.visit(EXAMPLE_APP)
  
      def test_get_alert(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_right_click(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').right_click()
  
      def test_double_click(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').double_click()
  
      def test_mouse_over(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').first.mouse_over()
  
      def test_mouse_out(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').first.mouse_out()
  
      def test_access_prompts_and_be_able_to_fill_then(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_confirm_and_accept_and_dismiss_them_using_with(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_confirm_and_accept_and_dismiss_them(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_alerts_using_with(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_alerts_and_accept_them(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_can_work_on_popups(self):
          # raise this as a reminder to check if this issue is fixed
          raise NotImplementedError('https://github.com/detro/ghostdriver/'
                                    'issues/180')
  
new_contents: try:
      import unittest2 as unittest
  except ImportError:
      import unittest
  
  from splinter import Browser
  from fake_webapp import EXAMPLE_APP
  from base import WebDriverTests
  
  
  class PhantomJSBrowserTest(WebDriverTests, unittest.TestCase):
      @classmethod
      def setUpClass(cls):
          cls.browser = Browser("phantomjs")
  
      @classmethod
      def tearDownClass(cls):
          cls.browser.quit()
  
      def setUp(self):
          self.browser.visit(EXAMPLE_APP)
  
      def test_get_alert(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_right_click(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').right_click()
  
      def test_double_click(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').double_click()
  
      def test_mouse_over(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').first.mouse_over()
  
      def test_mouse_out(self):
          with self.assertRaises(NotImplementedError):
              self.browser.find_by_id('visible').first.mouse_out()
  
      def test_access_prompts_and_be_able_to_fill_then(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_confirm_and_accept_and_dismiss_them_using_with(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_confirm_and_accept_and_dismiss_them(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_alerts_using_with(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_access_alerts_and_accept_them(self):
          with self.assertRaises(NotImplementedError):
              self.browser.get_alert()
  
      def test_can_work_on_popups(self):
          # FIXME: Check https://github.com/detro/ghostdriver/issues/180 to see if
          # we can implement this test
          pass
  
subject: remove intentionally failing test