def test_get_bins_3(self):
     input = {89673569:2.18334244957, 89673786:1.49353654761, 
              89673554:0.925925925958, 89673554:0.925925925958, 
              89673612:0.372504190703, 89673576:0.261714337513, 
              89673416:0.00296568141117}
     bin_size = 1000
     expected = [89673416, 89673786]
     self.assertEqual(get_bins(input, bin_size, False), expected)
 def test_get_bins(self):
     input = {37727329: 0.000410679807173, 17122884: 1.65149355352e-05, 
                 45665159: 0.000458525064284, 20657577: 1.36374430037e-06, 
                 25487245: 0.000531817951012, 20657552: 3.67213902751e-08, 
                 34837524: 0.000278191479631, 17866198: 0.000277108761292, 
                 21681115: 6.27910706602e-10, 25636117: 0.000434635239138}
     bin_size = 5000000
     expected = [17122884, 22122884, 27122884, 32122884, 37122884, 42122884, 45665159]
     self.assertEqual(get_bins(input, bin_size, False), expected)