~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_config.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-16 11:08:11 UTC
  • mfrom: (6521 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6522.
  • Revision ID: jelmer@samba.org-20120416110811-0y996ihqy9o2bb1t
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
            """
96
96
            ''')
97
97
 
98
 
    def test_list_all_values(self):
 
98
    def test_list_value_all(self):
99
99
        config.option_registry.register(config.ListOption('list'))
100
100
        self.addCleanup(config.option_registry.remove, 'list')
101
101
        self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
106
106
              list = 1, a, "with, a comma"
107
107
            ''')
108
108
 
109
 
    def test_list_value_only(self):
 
109
    def test_list_value_one(self):
110
110
        config.option_registry.register(config.ListOption('list'))
111
111
        self.addCleanup(config.option_registry.remove, 'list')
112
112
        self.bazaar_config.set_user_option('list', [1, 'a', 'with, a comma'])
115
115
            1, a, "with, a comma"
116
116
            ''')
117
117
 
 
118
    def test_registry_value_all(self):
 
119
        self.bazaar_config.set_user_option('bzr.transform.orphan_policy',
 
120
                                           u'move')
 
121
        script.run_script(self, '''\
 
122
            $ bzr config -d tree
 
123
            bazaar:
 
124
              [DEFAULT]
 
125
              bzr.transform.orphan_policy = move
 
126
            ''')
 
127
 
 
128
    def test_registry_value_one(self):
 
129
        self.bazaar_config.set_user_option('bzr.transform.orphan_policy',
 
130
                                           u'move')
 
131
        script.run_script(self, '''\
 
132
            $ bzr config -d tree bzr.transform.orphan_policy
 
133
            move
 
134
            ''')
 
135
 
118
136
    def test_bazaar_config(self):
119
137
        self.bazaar_config.set_user_option('hello', 'world')
120
138
        script.run_script(self, '''\