Exemplo n.º 1
0
 def test_truncate_certain_keys(self):
     url = bugzilla_submit_url(short_desc='x' * 1000)
     ok_('x' * 1000 not in url)
     ok_('x' * (255 - 3) + '...' in url)
Exemplo n.º 2
0
 def test_kwargs(self):
     url = bugzilla_submit_url(foo='?&"', numbers=['one', 'two'])
     ok_(url.startswith('https://bugzilla.mozilla.org/enter_bug.cgi?'))
     ok_('foo=%3F%26%22' in url)
     ok_('numbers=one' in url)
     ok_('numbers=two' in url)
Exemplo n.º 3
0
 def test_basic_url(self):
     url = bugzilla_submit_url()
     eq_(url, 'https://bugzilla.mozilla.org/enter_bug.cgi')
Exemplo n.º 4
0
 def test_truncate_certain_keys(self):
     url = bugzilla_submit_url(short_desc='x' * 1000)
     ok_('x' * 1000 not in url)
     ok_('x' * (255 - 3) + '...' in url)
Exemplo n.º 5
0
 def test_kwargs(self):
     url = bugzilla_submit_url(foo='?&"', numbers=['one', 'two'])
     ok_(url.startswith('https://bugzilla.mozilla.org/enter_bug.cgi?'))
     ok_('foo=%3F%26%22' in url)
     ok_('numbers=one' in url)
     ok_('numbers=two' in url)
Exemplo n.º 6
0
 def test_basic_url(self):
     url = bugzilla_submit_url()
     eq_(url, 'https://bugzilla.mozilla.org/enter_bug.cgi')