Exemplo n.º 1
0
 def test_unknown(self):
     """Unknown block type."""
     self.assertEquals(
         mian.lookup_block_type('foobar'),
         [])
Exemplo n.º 2
0
 def test_empty(self):
     """No match."""
     self.assertEquals(
         mian.lookup_block_type(''),
         [])
Exemplo n.º 3
0
 def test_hex(self):
     """Hex ID match."""
     self.assertEquals(
         mian.lookup_block_type('20'),
         ['\x20'])
Exemplo n.º 4
0
 def test_unused_hex(self):
     """Unused hex ID match."""
     self.assertEquals(
         mian.lookup_block_type('ff'),
         ['\xff'])
Exemplo n.º 5
0
 def test_substring(self):
     """Substring match."""
     self.assertEquals(
         mian.lookup_block_type('gold'),
         ['\x0e', '\x29', '\x59'])