Exemplo n.º 1
0
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
Exemplo n.º 2
0
def bomb():
    """A bomb context appropriate for proper testing of all bomb cases."""
    bomb = Bomb()
    return bomb
Exemplo n.º 3
0
def memory():
    """A memory context appropriate for proper testing of all memory cases."""
    bomb = Bomb()
    memory = Memory(bomb)
    return memory
Exemplo n.º 4
0
def bomb():
    """Bomb context appropriate for testing all bomb cases."""
    bomb = Bomb()
    return bomb
Exemplo n.º 5
0
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
Exemplo n.º 6
0
def bomb():
    """A bomb context appropriate for proper testing of all wire sequences
    cases.
    """
    bomb = Bomb()
    return bomb