def test_get_version_error(qtbot):
 http_stub = HTTPGetStub(success=False)
 client = autoupdate.PyPIVersionClient(client=http_stub)
 with qtbot.assertNotEmitted(client.success):
  with qtbot.waitSignal(client.error):
   client.get_version('test')

def test_get_version_error ( qtbot ) : http_stub = HTTPGetStub ( success = False ) client = autoupdate . PyPIVersionClient ( client = http_stub ) with qtbot . assertNotEmitted ( client . success ) : with qtbot . waitSignal ( client . error ) : client . get_version ( 'test' )
test get_version() when error is emitted .