def METHOD_NAME(self):
    with open(DUMMY_FILE, "w") as file:
        deps = generate(
            file,
            EXAMPLE_BASIC,
            EXAMPLE_TEMPLATES,
            EXAMPLE_XUL,
        )
    with open(DUMMY_FILE, "r") as file:
        contents = file.read()
        self.assertIn(
            "<!ENTITY % exampleDTD SYSTEM",
            contents,
            "Has doctype",
        )
        self.assertIn("<p>Lorem ipsum", contents, "Has HTML content")
        self.assertIn('"example_basic"', contents, "Has basic fragment key")
        self.assertIn(
            '"example_multiple_templates/alpha"',
            contents,
            "Has multiple templates fragment key",
        )
        self.assertIn('"example_xul"', contents, "Has XUL fragment key")
        self.assertIn(
            "const getHTMLFragment =",
            contents,
            "Has fragment loader method declaration",
        )
    os.remove(DUMMY_FILE)
    self.assertEqual(len(deps), 3, "deps are correct")
    self.assertIn(EXAMPLE_BASIC, deps, "deps are correct")
    self.assertIn(EXAMPLE_TEMPLATES, deps, "deps are correct")
    self.assertIn(EXAMPLE_XUL, deps, "deps are correct")