def test_from_rfc822_record_min_record(self): job = JobDefinition.from_rfc822_record(self._min_record) self.assertEqual(job.plugin, "plugin") self.assertEqual(job.id, "id") self.assertEqual(job.requires, None) self.assertEqual(job.command, None) self.assertEqual(job.description, None)
def test_from_rfc822_record_full_record(self): job = JobDefinition.from_rfc822_record(self._full_record) self.assertEqual(job.plugin, "plugin") self.assertEqual(job.id, "id") self.assertEqual(job.requires, "requires") self.assertEqual(job.command, "command") self.assertEqual(job.description, "description-value")