@unittest.skipIf((os.name != 'nt'), 'Test only applicable on Windows.')
def test_path_normalization(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'))
@unittest.skipIf((os.name != 'nt'), 'Test only applicable on Windows.')
def test_path_normalization(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'))