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