def test_torch_false(self): self.assertFalse(bbool(blocks["redstone-torch-off"].slot, 0x0))
def test_torch_true(self): self.assertTrue(bbool(blocks["redstone-torch"].slot, 0x0))
def test_lever_false(self): self.assertFalse(bbool(blocks["lever"].slot, 0x7))
def test_lever_true(self): self.assertTrue(bbool(blocks["lever"].slot, 0xf))
def test_wire_false(self): self.assertFalse(bbool(blocks["redstone-wire"].slot, 0x0))
def test_wire_true(self): self.assertTrue(bbool(blocks["redstone-wire"].slot, 0xc))
def from_block(self, block, metadata): self.status = bbool(block, metadata)