Part of lp.code.model.tests
Other tests are in codeimport-machine.txt.
CodeImportMachine.shouldLookForJob