def test_py_real_build_slides(self): args = ( "pynes py pynes/examples/slides.py " "--path fixtures/nerdynights/scrolling " "--output pynes/examples/slides.nes --asm" ).split() main(args)
def test_py_real_build_helloworld(self): args = ( "pynes py pynes/examples/helloworld.py " "--path fixtures/nesasm/scrolling " "--output pynes/examples/helloworld.nes" ).split() main(args)
def test_py_real_build_movingsprite(self): args = ( "pynes py pynes/examples/movingsprite.py " "--path fixtures/movingsprite " "--output pynes/examples/movingsprite.nes" ).split() main(args)
def test_py_real_build_mario(self): args = ( "pynes py pynes/examples/mario.py " "--path fixtures/nesasm/scrolling " "--output pynes/examples/mario.nes" ).split() main(args)
def test_py_with_output(self, composer): main("pynes py pynes/examples/movingsprite.py --output output.nes". split()) composer.assert_called_once_with('pynes/examples/movingsprite.py', output='output.nes', asm=False, path=None)
def test_py_real_build_helloworld(self): args = ( "pynes py pynes/examples/helloworld.py " "--path fixtures/nerdynights/scrolling " "--output pynes/examples/helloworld.nes" ).split() main(args)
def test_py_with_path(self, composer): main( "pynes py pynes/examples/movingsprite.py --path fixtures/movingsprite" .split()) composer.assert_called_once_with('pynes/examples/movingsprite.py', output=None, path='fixtures/movingsprite', asm=False)
def test_asm_with_path(self, compiler): main( "pynes asm fixtures/movingsprite/movingsprite.asm --path fixtures/movingsprite" .split()) compiler.assert_called_once_with( 'fixtures/movingsprite/movingsprite.asm', output=None, path='fixtures/movingsprite')
def test_asm_with_output(self, compiler): main( "pynes asm fixtures/movingsprite/movingsprite.asm --output /tmp/movingsprite.nes" .split()) compiler.assert_called_once_with( 'fixtures/movingsprite/movingsprite.asm', output='/tmp/movingsprite.nes', path=None)
def test_py_with_path(self, composer): main("pynes py pynes/examples/movingsprite.py --path fixtures/movingsprite".split()) composer.assert_called_once_with( 'pynes/examples/movingsprite.py', output=None, path='fixtures/movingsprite', asm=False)
def test_py_with_output(self, composer): main("pynes py pynes/examples/movingsprite.py --output output.nes".split()) composer.assert_called_once_with( 'pynes/examples/movingsprite.py', output='output.nes', asm=False, path=None)
def test_py_with_asm(self, composer): main("pynes py pynes/examples/movingsprite.py --asm".split()) composer.assert_called_once_with( 'pynes/examples/movingsprite.py', output=None, asm=True, path=None)
def test_asm_with_path(self, compiler): main("pynes asm fixtures/movingsprite/movingsprite.asm --path fixtures/movingsprite".split()) compiler.assert_called_once_with( 'fixtures/movingsprite/movingsprite.asm', output=None, path='fixtures/movingsprite')
def test_asm_with_output(self, compiler): main("pynes asm fixtures/movingsprite/movingsprite.asm --output /tmp/movingsprite.nes".split()) compiler.assert_called_once_with( 'fixtures/movingsprite/movingsprite.asm', output='/tmp/movingsprite.nes', path=None)
def test_py_real_build_mario(self): args = ("pynes py pynes/examples/mario.py " "--path fixtures/nesasm/scrolling " "--output pynes/examples/mario.nes").split() main(args)
def test_py_with_asm(self, composer): main("pynes py pynes/examples/movingsprite.py --asm".split()) composer.assert_called_once_with('pynes/examples/movingsprite.py', output=None, asm=True, path=None)
def test_py(self, composer): main("pynes py pynes/examples/movingsprite.py".split()) self.assertTrue(composer.called)
def test_asm(self, compiler): main("pynes asm fixtures/movingsprite/movingsprite.asm".split()) self.assertTrue(compiler.called)