def test_init(number, expected_supported_features):
    light_support = LightSupport(None, None, False)
    light_support._supported_features = FeatureSupport.decode(
        number, light_support.features)
    assert light_support._supported_features == expected_supported_features
Esempio n. 2
0
def test_init(number, expected_supported_features):
    cover_support = CoverSupport(None, None, False)
    cover_support._supported_features = FeatureSupport.decode(
        number, cover_support.features
    )
    assert cover_support._supported_features == expected_supported_features
Esempio n. 3
0
def test_init(number, expected_supported_features):
    media_player_support = MediaPlayerSupport(None, None, False)
    media_player_support._supported_features = FeatureSupport.decode(
        number, media_player_support.features
    )
    assert media_player_support._supported_features == expected_supported_features