def assertActiveSharesEqual(self, member, start, end, investments, expected): provider = InvestmentProvider_MockUp(investments) curve = MemberSharesCurve(investments = provider) result = curve.hourly(isodate(start), isodate(end),member) self.assertEqual(list(result), expected)
def assert_atDay_equal(self, member, day, investments, expectation): investmentsProvider = InvestmentProvider_MockUp(investments) curve = MemberSharesCurve(investments = investmentsProvider) self.assertEqual(expectation, curve.atDay(isodate(day),member))