'Test it replaces environment variables with multiple mappings.'

def testReplacesEnvironmentVariablesWithMultipleMappings(self):

    mapping = {'appdata': ['C:\\Users\\foo\\Application    Data', 'C:\\Users\\bar\\Application    Data']}
    fixture = [('%AppData%\\Realtek\\Audio\\blah.exe    -s', ['C:\\Users\\foo\\Application    Data\\Realtek\\Audio\\blah.exe', 'C:\\Users\\bar\\Application    Data\\Realtek\\Audio\\blah.exe']), ("'%AppData%\\Realtek\\Audio\\blah.exe'    -s", ['C:\\Users\\foo\\Application    Data\\Realtek\\Audio\\blah.exe', 'C:\\Users\\bar\\Application    Data\\Realtek\\Audio\\blah.exe'])]
    for (in_str, result) in fixture:
        self.assertEqual(set(windows.DetectExecutablePaths([in_str], mapping)), set(result))
