def test_prefix_cuts_off(self):
     self.assertEquals(set(["a"]), restrict_prefixes(["a", "b/c"], "a"))
 def test_prefix_restricts(self):
     self.assertEquals(set(["a/d"]), restrict_prefixes(["a", "b/c"], "a/d"))
 def test_root(self):
     self.assertEquals(set(["a", "b/c"]), restrict_prefixes(["a", "b/c"], ""))