def test_worlists(self):
    obj = DataParser.run(['data/maligaiporul.txt', 'data/vilangugal.txt'])
    r = obj.analysis()
    self.assertEqual(r['catlen'], 5)
    self.assertEqual(sorted(list(map(len, r['dict'].values()))), sorted([56, 28, 15, 8, 3]))
def test_worlists(self):
    obj = DataParser.run(['data/maligaiporul.txt', 'data/vilangugal.txt'])
    r = obj.analysis()
    self.assertEqual(r['catlen'], 5)
    self.assertEqual(sorted(list(map(len, r['dict'].values()))), sorted([56, 28, 15, 8, 3]))