def test_combo(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-l', 'service1', '-b', 'branchA', 'service2', '-c']) assert_equal('branchA', branch['service2']) assert_in('service1', local) assert_equal(only, False) assert_equal(checkout, True)
def test_checkout(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-c']) assert_equal({}, branch) assert_equal(0, len(local)) assert_equal(False, only) assert_equal(True, checkout)
def test_branch(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-b', 'branch1', 'service1']) assert_equal('branch1', branch['service1']) assert_equal(0, len(local)) assert_equal(only, False) assert_equal(checkout, False)
def test_local(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-l', 'service1']) assert_equal({}, branch) assert_in('service1', local) assert_equal(False, only) assert_equal(False, checkout)
def test_adhoc(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-a']) assert_equal(True, adhoc)
def test_default_csl(self): (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-d', 'branchA,master']) assert_equal(['branchA', 'master'], default)