예제 #1
0
 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)))
예제 #2
0
 def test_call_all_none(self):
     binnings = (MockBinningNoneNext(), MockBinningNoneNext(), MockBinningNoneNext())
     keyComposer = summary.NextKeyComposer(binnings)
     self.assertEqual(( ), keyComposer((11, 8, 20)))
예제 #3
0
 def test_call_no_binning(self):
     binnings = ( )
     keyComposer = summary.NextKeyComposer(binnings)
     self.assertEqual(( ), keyComposer(( )))
예제 #4
0
 def test_repr(self):
     binnings = (MockBinningPlusOneNext(), MockBinningPlusOneNext(), MockBinningPlusOneNext())
     keyComposer = summary.NextKeyComposer(binnings)
     repr(keyComposer)