コード例 #1
0
ファイル: test_package.py プロジェクト: motown300/mian
 def test_unknown(self):
     """Unknown block type."""
     self.assertEquals(
         mian.lookup_block_type('foobar'),
         [])
コード例 #2
0
ファイル: test_package.py プロジェクト: motown300/mian
 def test_empty(self):
     """No match."""
     self.assertEquals(
         mian.lookup_block_type(''),
         [])
コード例 #3
0
ファイル: test_package.py プロジェクト: motown300/mian
 def test_hex(self):
     """Hex ID match."""
     self.assertEquals(
         mian.lookup_block_type('20'),
         ['\x20'])
コード例 #4
0
ファイル: test_package.py プロジェクト: motown300/mian
 def test_unused_hex(self):
     """Unused hex ID match."""
     self.assertEquals(
         mian.lookup_block_type('ff'),
         ['\xff'])
コード例 #5
0
ファイル: test_package.py プロジェクト: motown300/mian
 def test_substring(self):
     """Substring match."""
     self.assertEquals(
         mian.lookup_block_type('gold'),
         ['\x0e', '\x29', '\x59'])