Пример #1
0
 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))
Пример #2
0
 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))
Пример #3
0
 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)
Пример #5
0
 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)