Exemplo n.º 1
0
 def test_5(self):
     with pytest.raises(AssertionError):
         check_range(0x100, length=None)
Exemplo n.º 2
0
 def test_3(self):
     with pytest.raises(AssertionError):
         check_range(None, end=100)
Exemplo n.º 3
0
 def test_4(self):
     with pytest.raises(AssertionError):
         check_range(0x100, end=None)
Exemplo n.º 4
0
 def test_1(self):
     assert check_range(0, end=0x1ff) == (0, 0x1ff)
Exemplo n.º 5
0
 def test_2(self):
     assert check_range(0, length=0x200) == (0, 0x1ff)
Exemplo n.º 6
0
 def test_5(self):
     with pytest.raises(AssertionError):
         check_range(0x100, length=None)
Exemplo n.º 7
0
 def test_4(self):
     with pytest.raises(AssertionError):
         check_range(0x100, end=None)
Exemplo n.º 8
0
 def test_3(self):
     with pytest.raises(AssertionError):
         check_range(None, end=100)
Exemplo n.º 9
0
 def test_2(self):
     assert check_range(0, length=0x200) == (0, 0x1ff)
Exemplo n.º 10
0
 def test_1(self):
     assert check_range(0, end=0x1ff) == (0, 0x1ff)