def setUp(self):
     self.__subject = FakeSubject()
     self.__project = domain.Project(metric_sources={metric_source.History: FakeHistory()})
     self.__metric = MetricUnderTest(self.__subject, project=self.__project)
 def setUp(self):
     self.__subject = FakeSubject()
     project = domain.Project(metric_sources={metric_source.History: FakeHistory()})
     self._metric = self.metric_under_test_class()(self.__subject, project=project)
 def setUp(self):
     self.__subject = FakeSubject()
     self.__project = domain.Project(
         metric_sources={metric_source.History: FakeHistory()})
 def setUp(self):
     self.__subject = FakeSubject()
     project = domain.Project(
         metric_sources={metric_source.History: FakeHistory()})
     self.__metric = HigherIsBetterMetricUnderTest(self.__subject,
                                                   project=project)
 def setUp(self):
     project = domain.Project(metric_sources={metric_source.History: FakeHistory()})
     subject = [metric.CriticalViolations(FakeSubject(), project=project)]
     self.__metric = MetaMetricUnderTest(subject, project=project)