'Test foldersAtPath'

def test_folders_at_path(self):

    test_list = browser.foldersAtPath(os.path.join(self.here, 'not_a_real_path'))
    self.assertEqual(test_list[0]['currentPath'], self.here)
    test_list = browser.foldersAtPath('')
    if (os.name == 'nt'):
        self.assertEqual(test_list[0]['currentPath'], 'Root')
        drives = browser.getWinDrives()
        self.assertEqual(len(drives), len(test_list[1:]))
        for item in test_list[1:]:
            self.assertTrue((item['path'].strip(':\\') in drives))
    else:
        self.assertEqual(test_list[0]['currentPath'], '/')
    test_list = browser.foldersAtPath(os.path.join(self.here), includeParent=True)
    self.assertEqual(test_list[0]['currentPath'], self.here)
    self.assertEqual(test_list[1]['name'], '..')
    self.assertEqual(test_list[1]['path'], os.path.dirname(self.here))
