def test_should_adjust_clump_size_when_zero(self): node, parm = self.set_up(clump_size=0, frame_iterable=xrange(1, 9, 1)) frame_spec.best_clump_size(node) parm.set.assert_called_with(1)
def test_should_bail_out_when_no_frames(self): node, parm = self.set_up(clump_size=0, frame_iterable=[]) frame_spec.best_clump_size(node) parm.set.assert_not_called()
def test_clump_size_should_remain_1(self): node, parm = self.set_up(clump_size=1, frame_iterable=xrange(1, 9, 1)) frame_spec.best_clump_size(node) parm.set.assert_called_with(1)