blob: cce90b4ec44ad75797311793895e8f97ce48e3c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import os
import unittest
from pighelper import PigTestHelper, count_lines
class TestFilterCDXSoftware(PigTestHelper):
def test_tarballs(self):
r = self.run_pig("filter-cdx-tarball.pig", "tests/files/tarballs.cdx")
assert count_lines(r) == 2
def test_source_code(self):
r = self.run_pig("filter-cdx-source-code-crude.pig", "tests/files/sourcecode.cdx")
assert count_lines(r) == 1
|