Exemplo n.º 1
0
def test_is_model_b_plus_w_revision(cpu):
    from kano.utils.hardware import is_model_b_plus, RPI_B_PLUS_KEY

    assert (
        is_model_b_plus(revision=cpu.revision, use_cached=False) ==
        (cpu.platform_key == RPI_B_PLUS_KEY)
    )
Exemplo n.º 2
0
def is_unsupported_rpi():
    """Check if the Raspberry Pi board model is supported under Kano OS."""

    # The order of checks here is done Descending by Most Likely Model.
    return (is_model_b_plus() or is_model_b_beta() or is_model_b()
            or is_model_a() or is_model_a_plus() or is_model_zero()
            or is_model_zero_w())