Example #1
0
    def test_managepy_shell(self):
        """Test running some python code through the manage.py shell."""
        # first ensure bundle has been deployed
        self.install_my_bundle()

        # now check to see that we can run commands
        output = deploy.managepy_shell(self.app_id,
                                       self.bundle_name,
                                       "print 9*9\n")
        self.assertTrue("81" in output, output)
Example #2
0
def managepy_shell(app_id, bundle_name, some_python_code):
    return deploy.managepy_shell(app_id, bundle_name, some_python_code)