示例#1
0
def test_trouyack_youtrack_username():
    args = do_args(shlex.split("-yu admin bundle name foo=bar"))
    assert('admin' == args.yusername)
    args = do_args(shlex.split("--youtrack-username admin bundle name"))
    assert('admin' == args.yusername)
    args = do_args(shlex.split("--youtrack-username=admin bundle name"))
    assert('admin' == args.yusername)
示例#2
0
def test_trouyack_youtrack_password():
    args = do_args(shlex.split("-yp password bundle name foo=bar"))
    assert('password' == args.ypassword)
    args = do_args(shlex.split("--youtrack-password password bundle name"))
    assert('password' == args.ypassword)
    args = do_args(shlex.split("--youtrack-password=password bundle name"))
    assert('password' == args.ypassword)
示例#3
0
def test_trouyack_keywords():
    args = do_args(shlex.split("bundle name foo=bar baz=bonzo"))
    print args.desc_data
    assert(('bonzo' == args.desc_data['baz']) and
           ('bar' == args.desc_data['foo']))
示例#4
0
def test_trouyack_host():

    args = do_args(shlex.split("-y http://example.org bundle name"))
    assert('http://example.org' == args.youtrack)
    args = do_args(shlex.split("--youtrack http://example.org bundle name"))
    assert('http://example.org' == args.youtrack)