Beispiel #1
0
def test_pretty_flags():
    assert dis.pretty_flags(1) == '0x00000001 (OPTIMIZED)'
Beispiel #2
0
 def test_pretty_flags_no_flags(self):
     self.assertEqual(dis.pretty_flags(0), '0x00000000 (0x0)')
Beispiel #3
0
 def test_pretty_flags_no_flags(self):
     self.assertEqual(dis.pretty_flags(0), '0x00000000 (0x0)')
Beispiel #4
0
def test_pretty_flags():
    assert dis.pretty_flags(1) == '0x00000001 (OPTIMIZED)'