1515
1515
actual = list(conf.get_options())
1516
1516
self.assertEqual(expected, actual)
1518
# One variable in non of the above
1518
# One variable in none of the above
1519
1519
def test_no_variable(self):
1520
1520
# Using branch should query branch, locations and bazaar
1521
1521
self.assertOptions([], self.branch_config)
1569
1569
super(TestConfigRemoveOption, self).setUp()
1570
1570
create_configs_with_file_option(self)
1572
def assertOptions(self, expected, conf):
1573
actual = list(conf.get_options())
1574
self.assertEqual(expected, actual)
1576
def test_remove_in_locations(self):
1577
self.locations_config.remove_user_option('file', self.tree.basedir)
1579
[('file', 'branch', 'DEFAULT', 'branch'),
1580
('file', 'bazaar', 'DEFAULT', 'bazaar'),],
1583
def test_remove_in_branch(self):
1584
self.branch_config.remove_user_option('file')
1586
[('file', 'locations', self.tree.basedir, 'locations'),
1587
('file', 'bazaar', 'DEFAULT', 'bazaar'),],
1590
def test_remove_in_bazaar(self):
1591
self.bazaar_config.remove_user_option('file')
1593
[('file', 'locations', self.tree.basedir, 'locations'),
1594
('file', 'branch', 'DEFAULT', 'branch'),],
1573
1598
class TestConfigGetSections(tests.TestCaseWithTransport):