def test_can_be_opened_by_clicking_the_handle(self):
        self.goto(self.home_page_url)
        body_tag = self.browser.find_by_css('body').first
        self.assertTrue(body_tag.has_class('editor-hidden'))

        self.find_and_click_by_css(self.browser, '#editor-handle')
        self.assertFalse(body_tag.has_class('editor-hidden'))

        try:
            value = self.browser.driver.get_cookie('fpEditorOpened')['value']
        except (__HOLE__, TypeError):
            self.fail("could not find cookie 'fpEditorOpened' but expected")

        self.assertEqual(value, 'true')
dataset/ETHPy150Open tangentlabs/django-fancypages/tests/browser/test_editor.py/TestTheEditorPanel.test_can_be_opened_by_clicking_the_handle