def test_file_package_holds_many_file_matchers(self): fp = FilePackage() fm1 = MockFileMatcher() fm2 = MockFileMatcher() fp.add_file_matchers(fm1, fm2) eq_(set((fm1, fm2)), set(fp.get_file_matchers()))
def test_file_package_holds_file_matchers(self): fp = FilePackage() fm = MockFileMatcher() fp.add_file_matcher(fm) eq_(set((fm,)), set(fp.get_file_matchers()))