def test_call_one_same(self): binnings = (MockBinningPlusOneNext(), MockBinningSameNext(), MockBinningPlusOneNext()) keyComposer = summary.NextKeyComposer(binnings) self.assertEqual(((12, 8, 20), (11, 8, 21)), keyComposer((11, 8, 20)))
def test_call_all_none(self): binnings = (MockBinningNoneNext(), MockBinningNoneNext(), MockBinningNoneNext()) keyComposer = summary.NextKeyComposer(binnings) self.assertEqual(( ), keyComposer((11, 8, 20)))
def test_call_no_binning(self): binnings = ( ) keyComposer = summary.NextKeyComposer(binnings) self.assertEqual(( ), keyComposer(( )))
def test_repr(self): binnings = (MockBinningPlusOneNext(), MockBinningPlusOneNext(), MockBinningPlusOneNext()) keyComposer = summary.NextKeyComposer(binnings) repr(keyComposer)