def METHOD_NAME(self):
    out = StringIO()
    mk = Makefile()
    rule = mk.create_rule(["c:\\foo"])
    rule.add_dependencies(["c:\\bar", "c:\\baz\\qux"])
    rule.add_commands(["echo c:\\foo"])
    mk.dump(out)
    self.assertEqual(
        out.getvalue(),
        "c:/foo: c:/bar c:/baz/qux\n" + "\techo c:\\foo\n" + "c:/bar c:/baz/qux:\n",
    )