def testCreateSuiteMastersDict(self): self._AddSampleData() suites = update_test_suites._FetchSuites() print update_test_suites._CreateSuiteMastersDict(suites) self.assertEqual( { 'dromaeo': { 'Chromium': { 'mac': False, 'win7': False } }, 'really': { 'Chromium': { 'mac': False, 'win7': False } }, 'scrolling': { 'Chromium': { 'mac': False, 'win7': False } }, }, update_test_suites._CreateSuiteMastersDict(suites))
def testCreateSuiteMastersDict(self): self._AddSampleData() suites = update_test_suites._FetchSuites() self.assertEqual( { 'dromaeo': {'Chromium': {'mac': False, 'win7': False}}, 'really': {'Chromium': {'mac': False, 'win7': False}}, 'scrolling': {'Chromium': {'mac': False, 'win7': False}}, }, update_test_suites._CreateSuiteMastersDict(suites))
def testCreateSuiteMastersDict(self): self._AddSampleData() suites = update_test_suites._FetchSuites() self.assertEqual( { "dromaeo": {"Chromium": {"mac": False, "win7": False}}, "really": {"Chromium": {"mac": False, "win7": False}}, "scrolling": {"Chromium": {"mac": False, "win7": False}}, }, update_test_suites._CreateSuiteMastersDict(suites), )
def testFetchSuites(self): self._AddSampleData() suites = update_test_suites._FetchSuites() suite_keys = [s.key for s in suites] self.assertEqual( map(utils.TestKey, [ 'Chromium/mac/dromaeo', 'Chromium/mac/really', 'Chromium/mac/scrolling', 'Chromium/win7/dromaeo', 'Chromium/win7/really', 'Chromium/win7/scrolling', ]), suite_keys)