def test_windowsfilenames():
    """Tests make_valid_filename windows_safe flag makes Windows-safe filenames
    """
    assertEquals(make_valid_filename("Test/File.avi", windows_safe = True), "Test_File.avi")
    assertEquals(make_valid_filename("\\/:*?<Evil>|\"", windows_safe = True), "______Evil___")
    assertEquals(make_valid_filename("COM2.txt", windows_safe = True), "_COM2.txt")
    assertEquals(make_valid_filename("COM2", windows_safe = True), "_COM2")
Tests make_valid_filename windows_safe flag makes Windows-safe filenames
    
tests/test_safefilename.py