mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-09 09:55:00 -04:00
Fix stealth test, add legacy v2 onion test
This commit is contained in:
parent
fea34c0f34
commit
dbbc9c0c82
4 changed files with 34 additions and 5 deletions
|
@ -158,9 +158,7 @@ class TorGuiBaseTest(GuiBaseTest):
|
|||
def copy_have_hidserv_auth_button(self, mode):
|
||||
'''Test that the Copy HidservAuth button is shown'''
|
||||
self.assertTrue(mode.server_status.copy_hidservauth_button.isVisible())
|
||||
clipboard = self.gui.qtapp.clipboard()
|
||||
self.assertRegex(clipboard.text(), r'HidServAuth %s [a-zA-Z1-9]' % self.gui.app.onion_host)
|
||||
|
||||
def hidserv_auth_string(self):
|
||||
'''Test the validity of the HidservAuth string'''
|
||||
self.assertRegex(self.gui.app.auth_string, r'HidServAuth %s [a-zA-Z1-9]' % self.gui.app.onion_host)
|
||||
self.assertRegex(self.gui.app.auth_string, r'HidServAuth {} [a-zA-Z1-9]'.format(self.gui.app.onion_host))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue