summaryrefslogtreecommitdiff
path: root/tests/analysis/scan/func.py
blob: bd7d0ceb6598f7135b3a6609b4757699c5fd6803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


from chrysacase import ChrysalideTestCase
from pychrysalide.analysis.scan import ScanFunction


class TestScanFunction(ChrysalideTestCase):
    """TestCase for analysis.scan.ScanFunction."""


    def testDirectInstances(self):
        """Reject direct instances."""

        with self.assertRaisesRegex(RuntimeError, 'pychrysalide.analysis.scan.ScanFunction is an abstract class'):

            f = ScanFunction('name')