예제 #1
0
class PPUTest(unittest.TestCase):

    def setUp(self):
        self.ppu = PPU()

    def tearDown(self):
        self.ppu = None

    def test_ppu_init_with_nmi_disabled(self):
        #self.assertEquals(False, self.ppu.nmi_enable)
        self.assertEquals(0x0000, self.ppu.ctrl)
        self.ppu.nmi_enable(True)
        #self.assertEquals(True, self.ppu.nmi_enable)
        self.assertEquals(128, self.ppu.ctrl)
예제 #2
0
 def setUp(self):
     self.ppu = PPU()
예제 #3
0
 def setUp(self):
     self.ppu = PPU()