def test_containsLSB_4(self): data1 = ReverseNumberMask(0x07, 8) data2 = ReverseNumberMask(0x0E, 4) contains = data1.containsLSB(data2) self.assertFalse(contains)
def test_containsMSB_3(self): data1 = ReverseNumberMask(0xF0, 8) data2 = ReverseNumberMask(0xE, 4) contains = data1.containsMSB(data2) self.assertFalse(contains)
def test_containsLSB_2(self): data1 = ReverseNumberMask(0x0F, 8) data2 = ReverseNumberMask(0x0F, 4) contains = data1.containsLSB(data2) self.assertTrue(contains)
def test_containsMSB_1(self): data1 = ReverseNumberMask(0xF0, 8) data2 = ReverseNumberMask(0xF0, 8) contains = data1.containsMSB(data2) self.assertTrue(contains)