Unit test: pygments.002

This test checks to see if the extension function that runs Pygments syntax highlighting works.

 1 |    def matching_images(self, iname=None):
   |        """Filter the image list to the ones that match the
   |        specified iname.
   | 
 5 |        """
   |        if iname:
   |            namere = re.compile(r"^%s" % iname)
   |        else:
   |            return list(self.image)
10 | 
   |        # Is it a id?
   |        filtered = self._data_match(self.image, namere)
   | 
   |        if not filtered:
15 |            # Is it a repository name?
   |            filtered = self._data_match(self.image,
   |                                        namere, "repository")
   | 
   |        if not filtered:
20 |            # Is it a tag?
   |            filtered = self._data_match(self.image, namere, "tag")
   | 
   |        return list(filtered)