Ejemplo n.º 1
0
Archivo: tests.py Proyecto: ogrodas/agg
 def test_onlycount(self):
     """equal to wc l"""
     agg.main("--count= --file=tests/count1.test tests/testdata".split())
     self.assertTrue( filecmp.cmp(  "tests/count1.expected","tests/count1.test" ) )
Ejemplo n.º 2
0
Archivo: tests.py Proyecto: ogrodas/agg
 def test_uniqconcat(self):
     agg.main("--groupby=4 --concatuniq=5 --file=tests/concatuniq1.test tests/testdata".split())
     self.assertTrue( filecmp.cmp(  "tests/concatuniq1.expected","tests/concatuniq1.test" ) )
Ejemplo n.º 3
0
Archivo: tests.py Proyecto: ogrodas/agg
 def test_min(self):
     agg.main("--groupby=4 --min=5 --file=tests/min1.test tests/testdata".split())
     self.assertTrue( filecmp.cmp(  "tests/min1.expected","tests/min1.test" ) )
Ejemplo n.º 4
0
Archivo: tests.py Proyecto: ogrodas/agg
 def test_count(self):
     agg.main("--groupby=4 --count= --file=tests/count2.test tests/testdata".split())
     self.assertTrue( filecmp.cmp(  "tests/count2.expected","tests/count2.test" ) )