def testCreateSuiteDescriptionDict(self): self._AddSampleData() suites = [] for test_path in ["Chromium/win7/dromaeo", "Chromium/mac/dromaeo"]: test = utils.TestKey(test_path).get() test.description = "Foo." test.put() suites.append(test) self.assertEqual({"dromaeo": "Foo."}, update_test_suites._CreateSuiteDescriptionDict(suites))
def testCreateSuiteDescriptionDict(self): self._AddSampleData() for test_path in ['Chromium/win7/dromaeo', 'Chromium/mac/dromaeo']: test = utils.TestKey(test_path).get() test.description = 'Foo.' test.put() suite_keys = update_test_suites._FetchTestSuiteKeys() self.assertEqual( {'dromaeo': 'Foo.', 'scrolling': '', 'really': ''}, update_test_suites._CreateSuiteDescriptionDict(suite_keys))
def testCreateSuiteDescriptionDict(self): self._AddSampleData() for test_path in ['Chromium/win7/dromaeo', 'Chromium/mac/dromaeo']: test = utils.TestKey(test_path).get() test.description = 'Foo.' test.put() suite_keys = update_test_suites._FetchTestSuiteKeys() self.assertEqual( {'dromaeo': 'Foo.', 'scrolling': '', 'really': ''}, update_test_suites._CreateSuiteDescriptionDict(suite_keys))
def testCreateSuiteDescriptionDict(self): self._AddSampleData() suites = [] for test_path in ['Chromium/win7/dromaeo', 'Chromium/mac/dromaeo']: test = utils.TestKey(test_path).get() test.description = 'Foo.' test.put() suites.append(test) self.assertEqual( {'dromaeo': 'Foo.'}, update_test_suites._CreateSuiteDescriptionDict(suites))
def testCreateSuiteDescriptionDict(self): self._AddSampleData() suites = [] for test_path in ['Chromium/win7/dromaeo', 'Chromium/mac/dromaeo']: test = utils.TestKey(test_path).get() test.description = 'Foo.' test.put() suites.append(test) self.assertEqual( {'dromaeo': 'Foo.'}, update_test_suites._CreateSuiteDescriptionDict(suites))