Exemplo n.º 1
0
def test_check_version():
    config = TConfig()
    client = Client(config, test=True)
    assert client.update_check(client.app_name, '0.0.2') is True
    assert client.update_check(client.app_name, '6.0.0') is False
Exemplo n.º 2
0
def test_download():
    client = Client(TConfig(), test=True)
    assert client.app_name == u'jms'
    assert client.update_check(client.app_name, '0.0.1') is True
    assert client.download() is True
    assert client.install() is True
Exemplo n.º 3
0
def test_bad_pub_key():
    config = TConfig()
    config.PUBLIC_KEY = 'bad key'
    client = Client(config, test=True)
    assert client.update_check(u'jms', '0.0.0') is False