def test_is_allstation3(chunk2): """"given a no-station address, testing is_allstation should yield False""" genericframe = GenericFrame() genericframe.parse_address(chunk2) assert genericframe.is_allstation() is False
def test_is_allstation1(chunk1): """test frame generated with unicast/allstation address for having one""" genericframe = GenericFrame() genericframe.parse_address(chunk1) assert genericframe.is_allstation() is True
def test_is_allstation2(): """vanilla object should not have an allstation address assigned""" genericframe = GenericFrame() assert genericframe.is_allstation() is False
def test_set_address4(): """setting 'all station' should work""" genericframe = GenericFrame() genericframe.set_address(bytes([255])) assert genericframe.is_allstation() is True