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