def test_bad_info(): c = Connection(port=P4PORT, client='bad_client', user=P4USER) c.run(['info']) with pytest.raises(errors.CommandError): cl = c.findChangelist() with pytest.raises(errors.CommandError): c = Connection(port='foo', client='bar', user='******') c.run(['info'])
def test_bad_info(): c = Connection(port='127.0.0.1:1666', client='bad_client', user='******') c.run('info') with pytest.raises(errors.CommandError): cl = c.findChangelist() with pytest.raises(errors.CommandError): c = Connection(port='foo', client='bar', user='******') c.run('info')