def bomb(): """A bomb context appropriate for proper testing of all button cases. """ bomb = Bomb() indicators = [ { 'label': 'FRK', 'lit': True }, { 'label': 'CAR', 'lit': True }, ] bomb.set_indicators(indicators) battery_packs = [ { 'type': 'AA', 'quantity': 2 }, { 'type': 'D', 'quantity': 1 }, ] bomb.set_battery_packs(battery_packs) bomb.set_ports(['DVI-D']) return bomb
def bomb(): """A bomb context appropriate for proper testing of all bomb cases.""" bomb = Bomb() return bomb
def memory(): """A memory context appropriate for proper testing of all memory cases.""" bomb = Bomb() memory = Memory(bomb) return memory
def bomb(): """Bomb context appropriate for testing all bomb cases.""" bomb = Bomb() return bomb
def bomb(): """A bomb context appropriate for proper testing of all simon says cases. """ bomb = Bomb() bomb.serial = 'zzz123' # No vowel by default return bomb
def bomb(): """A bomb context appropriate for proper testing of all wire sequences cases. """ bomb = Bomb() return bomb