def read_includes(fn): includes.extend(testlist.read_test_regexes(fn))
def test_reason(self): f = StringIO(" foo # because\nbar\n") self.assertEquals([("foo", "because"), ("bar", None)], list(read_test_regexes(f)))
def read_excludes(fn): excludes.extend(testlist.read_test_regexes(fn))
def test_no_reason(self): f = StringIO(" foo\n") self.assertEquals([("foo", None)], list(read_test_regexes(f)))
def test_comment(self): f = StringIO("# I am a comment\n # I am also a comment\n") self.assertEquals([], list(read_test_regexes(f)))