<commit_before># $Id: testall.py,v 1.9 2004/09/28 01:19:21 jpwarren Exp $
# $Revision: 1.9 $
#
#    BEEPy - A Python BEEP Library
#    Copyright (c) 2002-2004 <NAME> <<EMAIL>>
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# The top level testing class.
# This is used for testing various aspects of the beepy library
# Happily snarfed from http://diveintopython/ after seeing it
# in the code for py-beep

import sys, os, re, unittest

sys.path.append('..')

moduleNames = [ 'test_creator',
                'test_parser',
                'test_parser_creator',
                'test_listener',
                'test_framing',
                'test_initiator',
                'test_echoprofile',
                'test_saslanonymousprofile',
                'test_saslotpprofile',
                'test_tlsprofile',
              ]

## Check to see if TLS/SSL is available.
## This is only supported if you have twisted at this point,
## so if you don't, we skip the test.
try:
    import beepy.transports.tls

#    moduleNames.append('test_tlsprofile')
    
except:
    print "TLS not available, skipping TLS tests..."

def unitTest():
    """ Load tests defined in modules above and execute them
    """
    modules = map(__import__, moduleNames)<commit_msg>Fixed a bug in testall.py<commit_after># $Id: testall.py,v 1.10 2004/10/02 02:18:50 jpwarren Exp $
# $Revision: 1.10 $
#
#    BEEPy - A Python BEEP Library
#    Copyright (c) 2002-2004 <NAME> <<EMAIL>>
#
#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Lesser General Public
#    License as published by the Free Software Foundation; either
#    version 2.1 of the License, or (at your option) any later version.
#
#    This library is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
#    Lesser General Public License for more details.
#
#    You should have received a copy of the GNU Lesser General Public
#    License along with this library; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
#
# The top level testing class.
# This is used for testing various aspects of the beepy library
# Happily snarfed from http://diveintopython/ after seeing it
# in the code for py-beep

import sys, os, re, unittest

sys.path.append('..')

moduleNames = [ 'test_creator',
                'test_parser',
                'test_parser_creator',
                'test_listener',
                'test_framing',
                'test_initiator',
                'test_echoprofile',
                'test_saslanonymousprofile',
                'test_saslotpprofile',
              ]

## Check to see if TLS/SSL is available.
## This is only supported if you have twisted at this point,
## so if you don't, we skip the test.
try:
    import beepy.transports.tls

    moduleNames.append('test_tlsprofile')
    
except:
    print "TLS not available, skipping TLS tests..."

def unitTest():
    """ Load tests defined in modules above and execute them
    """
    modules = map(__import__, moduleNames)
{'fraction_non_alphanumeric': 0.08273930753564154, 'fraction_numerical': 0.02189409368635438, 'mean_word_length': 2.710103871576959, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5474839', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1098, 'n_words': 468}