예제 #1
0
    def test_with_literal_argument(self):
        br = self.browser
        br.open('http://test/test_html')
        br.select_form(name='method-arguments')
        br['lang_name:utf8:ustring'] = "Danish"
        page = parse_html(br.submit().read())

        self.assertEqual(csstext(page, 'table.sparql-results tbody td'),
                         u"<http://rdfdata.eionet.europa.eu/eea/languages/da>")
예제 #2
0
    def test_with_literal_argument(self):
        br = self.browser
        br.open('http://test/test_html')
        br.select_form(name='method-arguments')
        br['lang_name:utf8:ustring'] = "Danish"
        page = parse_html(br.submit().read())

        self.assertEqual(
            csstext(page, 'table.sparql-results tbody td'),
            u"<http://rdfdata.eionet.europa.eu/eea/languages/da>")
 def test_update_preview(self):
     self.box.update_script = "return '%.2f' % 1.2345\n"
     br = self.browser
     page = parse_html(br.open('http://test/manage_preview_html').read())
     self.assertEqual(csstext(page, 'div.update-preview'), "'1.23'")
예제 #4
0
 def test_update_preview(self):
     self.box.update_script = "return '%.2f' % 1.2345\n"
     br = self.browser
     page = parse_html(br.open('http://test/manage_preview_html').read())
     self.assertEqual(csstext(page, 'div.update-preview'), "'1.23'")