def setUp(self): """All methods beginning with substring 'test' will be executed. """ self.klass = dice.D20 self.d = dice.D20()
def __init__(self, num): for _ in range(num): self.append(dice.D20())
def run(self, iteration_num): hand_list = [] for _ in range(iteration_num): hand_list.append(dice.D20()) return hand_list
def roll(cls, iteration_num): hand_list = [] for _ in range(iteration_num): hand_list.append(dice.D20()) return cls(hand_list) # point of this is to plug in
def crawl(cls, iteration_num): hand_list = [] for _ in range(iteration_num): hand_list.append(dice.D20()) return hand_list