Exemple #1
0
    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)
Exemple #2
0
    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)
Exemple #3
0
    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)
Exemple #4
0
    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)
Exemple #5
0
 def test_adhoc(self):
     (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-a'])
     assert_equal(True, adhoc)
Exemple #6
0
 def test_default_csl(self):
     (local, branch, retag, default, checkout, adhoc, only) = parse_args(['-d', 'branchA,master'])
     assert_equal(['branchA', 'master'], default)