'Test for the GenProcessData() method.'

def testGenProcessData(self):

    art_name = 'ListProcessesGrr'
    context = 'RAW'
    result = self.GenProcessData([])
    self.assertTrue(('KnowledgeBase' in result))
    self.assertTrue((art_name in result))
    self.assertDictEqual(self.SetArtifactData(), result[art_name])
    result = self.GenProcessData([('proc1', 1, ['/bin/foo']), ('proc2', 2, ['/bin/bar'])])
    self.assertEquals('proc1', result[art_name][context][0].name)
    self.assertEquals(1, result[art_name][context][0].pid)
    self.assertEquals(['/bin/foo'], result[art_name][context][0].cmdline)
    self.assertEquals('proc2', result[art_name][context][1].name)
    self.assertEquals(2, result[art_name][context][1].pid)
    self.assertEquals(['/bin/bar'], result[art_name][context][1].cmdline)
