def test_add_bug_twice(self): bugid = 12345 subject.skip_bug(bugid) subject.skip_bug(bugid) with open(subject.skip_bugs_file) as f: self.assertEqual([bugid], json.load(f))
def test_is_skippable_skipable(self): bugid = 12345 subject.skip_bug(12345) self.assertTrue(subject.is_skipable(bugid))
def test_add_str_bug_to_skip(self): bugid = 12345 subject.skip_bug(str(bugid)) with open(subject.skip_bugs_file) as f: self.assertEqual([bugid], json.load(f))