diff tests/test_fetch_command_regexes.py @ 304:ce676eff002b

First merge, totally untested.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 01 May 2009 10:28:59 +0200
parents e2214c8fc91f
children 46e69be8e2c8
line wrap: on
line diff
--- a/tests/test_fetch_command_regexes.py
+++ b/tests/test_fetch_command_regexes.py
@@ -1,4 +1,4 @@
-import fetch_command
+import stupid
 import unittest
 
 two_empties = """Index: __init__.py
@@ -46,27 +46,27 @@ Name: svn:special
 
 class RegexTests(unittest.TestCase):
     def test_empty_file_re(self):
-        matches = fetch_command.empty_file_patch_wont_make_re.findall(two_empties)
+        matches = stupid.empty_file_patch_wont_make_re.findall(two_empties)
         assert sorted(matches) == ['__init__.py', 'bar/__init__.py']
 
     def test_any_matches_just_one(self):
         pat = '''Index: trunk/django/contrib/admin/urls/__init__.py
 ===================================================================
 '''
-        matches = fetch_command.any_file_re.findall(pat)
+        matches = stupid.any_file_re.findall(pat)
         assert len(matches) == 1
 
     def test_special_re(self):
-        matches = fetch_command.property_special_set_re.findall(special_delta)
+        matches = stupid.property_special_set_re.findall(special_delta)
         assert len(matches) == 1
 
     def test_any_file_re(self):
-        matches = fetch_command.any_file_re.findall(two_empties)
+        matches = stupid.any_file_re.findall(two_empties)
         assert sorted(matches) == ['__init__.py', 'bar/__init__.py',
                                    'bar/test_muhaha.py']
 
     def test_binary_file_re(self):
-        matches = fetch_command.binary_file_re.findall(binary_delta)
+        matches = stupid.binary_file_re.findall(binary_delta)
         assert matches == ['trunk/functional_tests/doc_tests/test_doctest_fixtures/doctest_fixtures_fixtures.pyc']
 
 def suite():