--- /dev/null
+LONG_RUNNING_JOB = JOB_XML = """
+<?xml version='1.0' encoding='UTF-8'?>
+<project>
+ <actions/>
+ <description></description>
+ <keepDependencies>false</keepDependencies>
+ <properties/>
+ <scm class="hudson.scm.NullSCM"/>
+ <canRoam>true</canRoam>
+ <disabled>false</disabled>
+ <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <triggers class="vector"/>
+ <concurrentBuild>false</concurrentBuild>
+ <builders>
+ <hudson.tasks.Shell>
+ <command>ping -c 200 localhost</command>
+ </hudson.tasks.Shell>
+ </builders>
+ <publishers/>
+ <buildWrappers/>
+</project>""".strip()
--- /dev/null
+'''
+System tests for `jenkinsapi.jenkins` module.
+'''
+import unittest
+from jenkinsapi.invocation import Invocation
+from jenkinsapi_tests.test_utils.random_strings import random_string
+from jenkinsapi_tests.systests.base import BaseSystemTest, EMPTY_JOB_CONFIG
+
+
+class TestInvocation(BaseSystemTest):
+
+ def test_invocation_object(self):
+ job_name = 'create_%s' % random_string()
+ job = self.jenkins.create_job(job_name, EMPTY_JOB_CONFIG)
+ ii = job.invoke()
+ self.assertIsInstance(ii, Invocation)
+
+
+
+
+if __name__ == '__main__':
+ unittest.main()