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" ) )
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" ) )
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" ) )
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" ) )