/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 tests/test_refs.py

Support non-ascii characters in tag names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2010 Jelmer Vernooij
 
2
# vim: encoding=utf-8
2
3
#
3
4
# This program is free software; you can redistribute it and/or modify
4
5
# it under the terms of the GNU General Public License as published by
61
62
                "HEAD": "ref: foo",
62
63
                "refs/tags/mytag": "mysha",
63
64
                "refs/tags/mytag^{}": "actualsha"}))
 
65
 
 
66
    def test_non_ascii_name(self):
 
67
        self.assertEquals({u'myt\xe2g': "actualsha"},
 
68
            refs.extract_tags({
 
69
                "HEAD": "ref: foo",
 
70
                "refs/tags/myt\xc3\xa2g": "actualsha"}))