def test_get_all_with_content_and_mimetype(self):
        """Test get_all_nodes with mimetype filter."""
        hash = self.factory.get_fake_hash()
        key = uuid.uuid4()
        root_id = self.vgw.get_root().id

        def mkfile(i, m):
            return self.vgw.make_file_with_content(
                root_id, 'file%s.tif' % i, hash, 1, 1, 1, key, mimetype=m)

        # make a bunch of files with content
        [mkfile(i, 'image/tif') for i in range(10)]
        all_nodes = self.vgw.get_all_nodes(with_content=True,
                                           mimetypes=['image/tif'])
        self.assertEqual(len(all_nodes), 10)
        for n in all_nodes:
            self.assertTrue(n.content.hash, hash)