<commit_before>import nose.tools
from unittest import TestCase
from nose import SkipTest
from nose.plugins.attrib import attr

from __init__ import TESTDATA, SERVICE

from birdy import create_parser

class CommandLineTestCase(TestCase):
    """
    Base TestCase class, sets up a CLI parser
    
    See: http://dustinrcollins.com/testing-python-command-line-apps
    """

    @classmethod
    def setUpClass(cls):
        from owslib.wps import WebProcessingService
        wps = WebProcessingService(SERVICE, verbose=False, skip_caps=False)
        cls.parser = create_parser(wps)

class BirdyTestCase(CommandLineTestCase):
    def test_with_empty_args(self):
        """
        User passes no args, should fail with SystemExit
        """                                    
        with self.assertRaises(SystemExit):
            self.parser.parse_args([])
            
    @attr('online')
    def test_birdy(self):
        raise SkipTest
        from birdy import main
        nose.tools.ok_(False, 'birdy needs some work')<commit_msg>working on birdy test ...<commit_after>import nose.tools
from unittest import TestCase
from nose import SkipTest
from nose.plugins.attrib import attr

from __init__ import TESTDATA, SERVICE

from birdy import create_parser

class CommandLineTestCase(TestCase):
    """
    Base TestCase class, sets up a CLI parser
    
    See: http://dustinrcollins.com/testing-python-command-line-apps
    """

    @classmethod
    def setUpClass(cls):
        from owslib.wps import WebProcessingService
        wps = WebProcessingService(SERVICE, verbose=False, skip_caps=False)
        cls.parser = create_parser(wps)

class BirdyTestCase(CommandLineTestCase):
    @attr('online')
    def test_with_empty_args(self):
        """
        User passes no args, should fail with SystemExit
        """
        with self.assertRaises(SystemExit):
            self.parser.parse_args([])
            
    @attr('online')
    def test_help(self):
        raise SkipTest
        args = self.parser.parse_args(args=['-h'])
        nose.tools.ok_(False, args)
{'fraction_non_alphanumeric': 0.08614051973051011, 'fraction_numerical': 0.0, 'mean_word_length': 2.78, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6854312', 'n_tokens_mistral': 595, 'n_tokens_neox': 585, 'n_words': 153}