def setup(r):
        # test applying a patch using globs without sourceDir. this will fail
        r.addPatch('tmpwatch.fakebug.*')"""

        # globs for addPatch are only used if soruceDir is defined.
        try:
            self.buildRecipe(recipestr, "TestSource")
        except OSError, e:
            if e.errno != 2:
                raise
            self.assertEquals(str(e),
                  "[Errno 2] No such file or directory: 'tmpwatch.fakebug.*'")
        else:
            self.fail("addPatch on bad filename should have failed")