/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_library_state.py

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-09 21:36:27 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20210109213627-h1xwcutzy9m7a99b
Added 'Case Preserving Working Tree Use Cases' from Canonical Wiki

* Addod a page from the Canonical Bazaar wiki
  with information on the scmeatics of case
  perserving filesystems an a case insensitive
  filesystem works.
  
  * Needs re-work, but this will do as it is the
    same inforamoton as what was on the linked
    page in the currint documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        finally:
53
53
            state.__exit__(None, None, None)
54
54
            self.assertEqual(['__enter__', '__exit__'], tracer._calls)
 
55
 
 
56
    def test_ui_not_specified(self):
 
57
        self.overrideAttr(breezy, '_global_state', None)
 
58
        state = library_state.BzrLibraryState(
 
59
            ui=None, trace=fixtures.RecordingContextManager())
 
60
        orig_ui = _mod_ui.ui_factory
 
61
        state.__enter__()
 
62
        try:
 
63
            self.assertEqual(orig_ui, _mod_ui.ui_factory)
 
64
        finally:
 
65
            state.__exit__(None, None, None)
 
66
            self.assertEqual(orig_ui, _mod_ui.ui_factory)