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