def setUp(self): self.__birt = FakeBirt() self.__subject = FakeSubject() self.__project = domain.Project( metric_sources={metric_source.Birt: self.__birt}) self.__metric = metric.NumberOfManualLogicalTestCases( subject=self.__subject, project=self.__project)
def test_value_when_birt_missing(self): """ Test that the value is -1 when Birt is missing. """ manual_ltcs = metric.NumberOfManualLogicalTestCases( subject=self.__subject, project=domain.Project()) self.assertEqual(-1, manual_ltcs.value())
def setUp(self): self.__birt = MagicMock() self.__subject = MagicMock() self.__project = domain.Project(metric_sources={metric_source.Backlog: self.__birt}) self.__metric = metric.NumberOfManualLogicalTestCases(subject=self.__subject, project=self.__project)