~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-03 12:56:06 UTC
  • mfrom: (6404.4.2 config-cmdline)
  • Revision ID: pqm@pqm.ubuntu.com-20120103125606-36p3u22k8kzbhoqc
(vila) Cleanup the configCommandLineStore implementation. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2655
2655
        self.assertRaises(errors.BzrCommandError,
2656
2656
                          self.store._from_cmdline, ['a=b', 'c'])
2657
2657
 
 
2658
class TestStoreMinimalAPI(tests.TestCaseWithTransport):
 
2659
 
 
2660
    scenarios = [(key, {'get_store': builder}) for key, builder
 
2661
                 in config.test_store_builder_registry.iteritems()] + [
 
2662
        ('cmdline', {'get_store': lambda test: config.CommandLineStore()})]
 
2663
 
 
2664
    def test_id(self):
 
2665
        store = self.get_store(self)
 
2666
        if type(store) == config.TransportIniFileStore:
 
2667
            raise tests.TestNotApplicable(
 
2668
                "%s is not a concrete Store implementation"
 
2669
                " so it doesn't need an id" % (store.__class__.__name__,))
 
2670
        self.assertIsNot(None, store.id)
 
2671
 
2658
2672
 
2659
2673
class TestStore(tests.TestCaseWithTransport):
2660
2674