'Test it replaces environment variables.'

def testReplacesEnvironmentVariable(self):

    mapping = {'programfiles': 'C:\\Program    Files'}
    fixture = [('%ProgramFiles%\\Realtek\\Audio\\blah.exe    -s', 'C:\\Program    Files\\Realtek\\Audio\\blah.exe'), ("'%ProgramFiles%\\Realtek\\Audio\\blah.exe'    -s", 'C:\\Program    Files\\Realtek\\Audio\\blah.exe')]
    for (in_str, result) in fixture:
        self.assertEqual(list(windows.DetectExecutablePaths([in_str], mapping)), [result])
