153
156
"""A UniqueIntegerBugTracker shouldn't consult the branch for tracker
157
161
self.assertIs(tracker, tracker.get('xxx', None))
158
162
self.assertIs(None, tracker.get('yyy', None))
160
164
def test_check_bug_id_only_accepts_integers(self):
161
165
"""A UniqueIntegerBugTracker accepts integers as bug IDs."""
163
168
tracker.check_bug_id('1234')
165
170
def test_check_bug_id_doesnt_accept_non_integers(self):
166
171
"""A UniqueIntegerBugTracker rejects non-integers as bug IDs."""
169
175
errors.MalformedBugIdentifier, tracker.check_bug_id, 'red')