Permalink
Browse files

Removing files that are no longer needed.

  • Loading branch information...
1 parent 93a71b4 commit 2c82df1c4f8131e16164a592e9cf2ee9d2ce8ce4 mdehoon committed Mar 15, 2009
@@ -1,15 +0,0 @@
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
-# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
-# THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-# DAMAGE.
-#
-# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
-# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-import AlwaysPassTestCase
-
-test_case = AlwaysPassTestCase.AlwaysPassTestCase( 'alwayspass' )
-test_case.invoke_suite( 'AlwaysPassTestCase' );
@@ -1,131 +0,0 @@
-# AlwaysPassTestCase
-#
-#
-# MODIFICATION NOTES: See bottom of file.
-
-# Copyright (c) 1999 Katharine Lindner
-# This module is free software; you can redistribute it and/or modify
-# it under the same terms as Python itself.
-
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
-# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
-# THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-# DAMAGE.
-#
-# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
-# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-
-import sys
-import string
-import Defect
-import UnitTestResults
-import UnitTestCase
-import UnitTestSuite
-
-
-
-class AlwaysPassTestCase( UnitTestCase.UnitTestCase ):
-
- def setup( self ):
- self.a = 1
- self.b = 1
- self.texta = 'python'
- self.textb = 'python'
- self.languages_a = [ 'perl', 'python', 'tcl' ]
- self.languages_b = [ 'perl', 'python', 'tcl' ]
- self.hash_a = { 'dog' : 'bark', 'bird' : 'chirp', 'cow': 'moo' }
- self.hash_b = { 'dog' : 'bark', 'bird' : 'chirp', 'cow': 'moo' }
-
- print 'setup'
-
- def tear_down( self ):
- """
- Title tear_down()
- Usage unit_test_case.teardown()
- Function Clean up after test case
-
- Returns
- Argument None
- """
- pass
-
- #Title : test_condition( self )
- #Usage :
- #Function : Test for a condition
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_condition( self ):
-
- a = 0;
- return ( self.assert_condition( self.a, 'failed condition' ) )
-
- #Title : test_equals()
- #Usage :
- #Function : Test for an equality between two values
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_equals( self ):
-
- return ( self.assert_equals( self.a, self.b ) )
-
- #Title : test_list_equals()
- #Usage :
- #Function : Test for an equality between two lists
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_list_equals( self ):
-
- return ( self.assert_equals( self.languages_a, self.languages_b ) )
-
- #Title : test_string_equals()
- #Usage :
- #Function : Test for an equality between two strings
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_string_equals( self ):
-
- return ( self.assert_equals( self.texta, self.textb ) )
-
- #Title : test_hash_equals()
- #Usage :
- #Function : Test for an equality between two hashes
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_hash_equals( self ):
-
- return ( self.assert_equals( self.hash_a, self.hash_b ) )
-
-
-#invoke_suite
-#
-# Title : invoke_suite()
-# Usage :
-# Function : create a suite of tests
-# :
-# Returns :
-# Argument : None
-
- def invoke_suite( self, suite_name ):
-
- test_results = UnitTestResults.UnitTestResults( )
- suite = UnitTestSuite.UnitTestSuite( suite_name )
- suite.build_suite( suite_name, self )
- suite.run( test_results )
-# open $fh, ">unit.log";
- test_results.print_failures( )
-# close $fh;
-
View
@@ -1,65 +0,0 @@
-# Defect
-#
-#
-# MODIFICATION NOTES: See bottom of file.
-
-# Copyright (c) 1999 Katharine Lindner
-# This module is free software; you can redistribute it and/or modify
-# it under the same terms as Python itself.
-
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
-# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
-# THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-# DAMAGE.
-#
-# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
-# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-import sys
-import traceback
-class Defect:
-
-
-
-
- #default for 0 only for DEGUGGIN!!!
- def __init__( self, message, trace = 0 ):
- self.message = message
- self.trace = trace
-
- def print_message( self, outfile = sys.stdout ):
- """
- Title print_message
- Usage print_message
- print_message( file_handle )
- Function Print a failure message
-
- Returns
- Argument File handle
- """
-
-
- outfile.write( '%s\n' % ( self.message ) )
-
- # Title : print_trace
- # Usage : print_trace
- # : print_trace( file_handle )
- # Function : Print a failure trace
- # :
- # Returns :
- # Argument : File handle
-
- def print_trace( self, outfile = sys.stdout ):
- trace = self.trace
- frame = trace.tb_frame
- code = frame.f_code
- outfile.write( '%s %s %d\n' % ( code.co_filename, code.co_name, code.co_firstlineno ) )
- if frame.f_back:
- frame = frame.f_back
- code = frame.f_code
- outfile.write( '%s %s %d\n' % ( code.co_filename, code.co_name, code.co_firstlineno ) )
-
-
@@ -1,77 +0,0 @@
-# JustOneTestCase
-#
-#
-# MODIFICATION NOTES: See bottom of file.
-
-# Copyright (c) 1999 Katharine Lindner
-# This module is free software; you can redistribute it and/or modify
-# it under the same terms as Python itself.
-
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
-# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
-# THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-# DAMAGE.
-#
-# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
-# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-
-import sys
-import string
-import Defect
-import UnitTestResults
-import UnitTestCase
-import UnitTestCaller
-
-
-
-class JustOneTestCase( UnitTestCase.UnitTestCase ):
-
- def setup( self ):
- self.a = 0
-
- print 'setup'
-
- def tear_down( self ):
- """
- Title tear_down()
- Usage unit_test_case.teardown()
- Function Clean up after test case
-
- Returns
- Argument None
- """
- print 'tear_down'
-
- #Title : test_condition( self )
- #Usage :
- #Function : Test for a condition
- # :
- #Returns : Results of the test
- #Argument : None
-
- def test_condition( self ):
-
- return ( self.assert_condition( self.a, 'failed condition' ) )
-
-# call_test
-#
-# Title : call_test
-# Usage :
-# Function : call a single test
-# :
-# Returns :
-# Argument : None
-
- def call_test( self ):
-
- test_results = UnitTestResults.UnitTestResults( )
- caller = UnitTestCaller.UnitTestCaller( 'test_condition', self.test_condition, self )
- caller.run( test_results )
-# open $fh, ">unit.log";
- test_results.print_failures( )
-# close $fh;
-
@@ -1,15 +0,0 @@
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
-# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
-# THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-# DAMAGE.
-#
-# THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-# PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
-# AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
-
-import NeverPassTestCase
-
-test_case = NeverPassTestCase.NeverPassTestCase( 'neverpass' )
-test_case.invoke_suite( 'NeverPassTestCase' );
Oops, something went wrong.

0 comments on commit 2c82df1

Please sign in to comment.