def METHOD_NAME(self):
    out = run_client(['bkr', 'machine-test', '--inventory',
            '--machine', self.system.fqdn, '--arch', 'i386',
            '--family', self.distro.osversion.osmajor.osmajor])
    self.assert_(out.startswith('Submitted:'), out)
    with session.begin():
        new_job = Job.query.order_by(Job.id.desc()).first()
        self.assertEqual(new_job.whiteboard, u'Test '+ self.system.fqdn)
        tasks = new_job.recipesets[0].recipes[0].tasks
        self.assertEqual(len(tasks), 2)
        self.assertEqual(tasks[0].name, u'/distribution/check-install')
        self.assertEqual(tasks[1].name, u'/distribution/inventory')
    #https://bugzilla.redhat.com/show_bug.cgi?id=893878
    try:
        out = run_client(['bkr', 'machine-test','--machine',
                          self.system.fqdn, '--tag','aTAG'])
    except Exception as ex:
        self.assertEqual(ex.stderr_output.rstrip('\n'),
                         'Could not find an appropriate distro to provision system with.')