Ejemplo n.º 1
0
def test_enabled_base_features_decodes_command_instance():
    BASE().enable()
    m = Message.decode('HSUP ADBASE ADTIGR')
    assert isinstance(m.command, SUP)

# def test_sup_command():
#     m = Message.decode('HSUP ADBASE ADTIGR')
#     assert m.command.add_features == set(['BASE', 'TIGR'])
#     assert m.command.remove_features == set([])
Ejemplo n.º 2
0
def test_message_decode_parses_message():
    m = Message.decode("HSUP ADBASE ADTIGR")
    assert isinstance(m, Message)
Ejemplo n.º 3
0
def test_disabled_base_feature_decodes_generic_instance():
    m = Message.decode('HSUP ADBASE ADTIGR')
    assert type(m.command) is Command