[TESTS] Remove old tests
authorIra W. Snyder <devel@irasnyder.com>
Thu, 28 Dec 2006 02:55:16 +0000 (18:55 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Thu, 28 Dec 2006 02:55:16 +0000 (18:55 -0800)
Remove some tests that correspond to features that were removed.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
rarslave-test.py

index f82fc12..5790681 100644 (file)
@@ -53,29 +53,13 @@ class rarslavetest (unittest.TestCase):
        def testFindLikelyFilesBadDir (self):
                DIR = '/fake/dir'
 
        def testFindLikelyFilesBadDir (self):
                DIR = '/fake/dir'
 
-               self.assertRaises (ValueError, find_likely_files, "fake", DIR)
+               self.assertRaises (AssertionError, find_likely_files, "fake", DIR)
 
        def testFindAllPar2Files (self):
                DIR = '/fake/dir'
 
                self.assertRaises (ValueError, find_all_par2_files, DIR)
 
 
        def testFindAllPar2Files (self):
                DIR = '/fake/dir'
 
                self.assertRaises (ValueError, find_all_par2_files, DIR)
 
-       def testHasExtension1 (self):
-               FILE = 'some.file.part01.rar'
-
-               self.assertTrue (has_extension (FILE, 'rar'))
-               self.assertTrue (has_extension (FILE, '.rar'))
-               self.assertTrue (has_extension (FILE, 'part01.rar'))
-               self.assertTrue (has_extension (FILE, '.part01.rar'))
-
-       def testHasExtension2 (self):
-               FILE = 'some.file.part01.rar'
-
-               self.assertFalse (has_extension (FILE, 'zip'))
-               self.assertFalse (has_extension (FILE, '.zip'))
-               self.assertFalse (has_extension (FILE, '.part01'))
-               self.assertFalse (has_extension (FILE, 'part01'))
-
        def testIsNewRar (self):
                DIR = os.getcwd() + '/test_material/01/'
 
        def testIsNewRar (self):
                DIR = os.getcwd() + '/test_material/01/'