Example #1
0
File: tests.py Project: 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" ) )
Example #2
0
File: tests.py Project: 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" ) )
Example #3
0
File: tests.py Project: 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" ) )
Example #4
0
File: tests.py Project: 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" ) )