/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_registry.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-07 19:27:38 UTC
  • mto: (7027.4.10 python3-blackbox)
  • mto: This revision was merged to the branch mainline in revision 7038.
  • Revision ID: jelmer@jelmer.uk-20180707192738-cbt5f28lbd3lx4td
Add some more bees; support writing both bytes and unicode strings in build_tree_contents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
302
302
 
303
303
    def create_simple_plugin(self):
304
304
        return self.create_plugin_file(
305
 
            'object1 = "foo"\n'
306
 
            '\n\n'
307
 
            'def function(a,b,c):\n'
308
 
            '    return a,b,c\n'
309
 
            '\n\n'
310
 
            'class MyClass(object):\n'
311
 
            '    def __init__(self, a):\n'
312
 
            '      self.a = a\n'
313
 
            '\n\n'
 
305
            b'object1 = "foo"\n'
 
306
            b'\n\n'
 
307
            b'def function(a,b,c):\n'
 
308
            b'    return a,b,c\n'
 
309
            b'\n\n'
 
310
            b'class MyClass(object):\n'
 
311
            b'    def __init__(self, a):\n'
 
312
            b'      self.a = a\n'
 
313
            b'\n\n'
314
314
        )
315
315
 
316
316
    def test_lazy_import_registry_foo(self):