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