def test_matching_value_passes(self): value = factory.make_name("value") self.assertTrue(download_descriptions.value_passes_filter( value, value))
def test_any_value_matches_asterisk(self): self.assertTrue( download_descriptions.value_passes_filter( "*", factory.make_name("value")))
def test_unmatched_value_does_not_pass(self): self.assertFalse( download_descriptions.value_passes_filter( factory.make_name("filter"), factory.make_name("value")))