Пример #1
0
 def setUp(self):
     self.mox = mox.Mox()
     self.cls = result_stats.SummaryStatsManager
     self.test_set_a = mock_data.MockTestSet(category='Aardvark')
     self.test_set_b = mock_data.MockTestSet(category='Badger')
     all_test_sets.AddTestSet(self.test_set_a)
     all_test_sets.AddTestSet(self.test_set_b)
Пример #2
0
    def setUp(self):
        self.test_set = mock_data.MockTestSet()
        all_test_sets.AddTestSet(self.test_set)

        self.mox = mox.Mox()
        self.mox.StubOutWithMock(time, 'clock')
        self.mox.StubOutWithMock(result_ranker, 'GetOrCreateRankers')
        self.apple_test = self.test_set.GetTest('apple')
        self.coconut_test = self.test_set.GetTest('coconut')
        self.apple_ranker = self.mox.CreateMock(result_ranker.CountRanker)
        self.apple_ranker_key = self.mox.CreateMock(datastore_types.Key)
        self.coconut_ranker = self.mox.CreateMock(result_ranker.LastNRanker)
        self.coconut_ranker_key = self.mox.CreateMock(datastore_types.Key)

        self.client = Client()
Пример #3
0
 def setUp(self):
     self.test_set = mock_data.MockTestSet()
     all_test_sets.AddTestSet(self.test_set)
     self.client = Client()
Пример #4
0
 def setUp(self):
     self.client = Client()
     self.test_set = mock_data.MockTestSet(self.CATEGORY)
     all_test_sets.AddTestSet(self.test_set)
     self.mox = mox.Mox()
Пример #5
0
 def setUp(self):
     self.mox = mox.Mox()
     self.test_set = mock_data.MockTestSet()
     all_test_sets.AddTestSet(self.test_set)