'User interpolation returns a list of paths.'

def testUserInterpolation(self):

    path = '{homedir}\\dir'
    new_path = flow_utils.InterpolatePath(path, self.client, users=['test'])
    self.assertEqual(new_path[0].lower(), 'c:\\users\\test\\dir')
    path = '{systemroot}\\{last_logon}\\dir'
    new_path = flow_utils.InterpolatePath(path, self.client, users=['test'])
    self.assertEqual(new_path[0].lower(), 'c:\\windows\\2012-11-10    00:00:00\\dir')
    path = '{homedir}\\a'
    new_path = flow_utils.InterpolatePath(path, self.client, users=['test', 'test2'])
    self.assertEqual(len(new_path), 2)
    self.assertEqual(new_path[0].lower(), 'c:\\users\\test\\a')
    self.assertEqual(new_path[1].lower(), 'c:\\users\\test2\\a')
    new_path = flow_utils.InterpolatePath('{does_not_exist}', self.client, users=['test'])
    self.assertEqual(new_path, [])
