Permalink
Browse files

Revert "upgrade sure version and update tests"

This reverts commit ea15b3b.
  • Loading branch information...
1 parent ea15b3b commit a100671277c5dd1297371fdfad7d54eb827d2071 @spulec committed Jan 21, 2013
Showing with 10 additions and 14 deletions.
  1. +1 −1 Makefile
  2. +2 −3 requirements.txt
  3. +0 −3 setup.py
  4. +7 −7 tests/unit/test_feature_parser.py
View
@@ -31,7 +31,7 @@ documentation:
clean:
@printf "Cleaning up files that are already in .gitignore... "
- #@for pattern in `cat .gitignore`; do find . -name "$$pattern" -delete; done
+ @for pattern in `cat .gitignore`; do find . -name "$$pattern" -delete; done
@echo "OK!"
withdraw-documentation:
View
@@ -4,14 +4,13 @@ Pygments==1.5
Sphinx==1.1.3
coverage==3.5.2
cssselect==0.7.1
-distribute==0.6.32
+distribute==0.6.27
docutils==0.9.1
fuzzywuzzy==0.1
lxml
mock==1.0b1
mox==0.5.3
nose==1.1.2
-#sure==1.0.6
-https://github.com/gabrielfalcao/sure/tarball/7d51e447e86b5beee11638c10a9d93f6f032d4e5
+sure==1.0.6
tornado==2.3
tox==1.4.2
View
@@ -52,7 +52,4 @@ def get_packages():
package_data={
'lettuce': ['COPYING', '*.md'],
},
- dependency_links=[
- "git+git://github.com/spulec/sure.git@py3k#egg=sure"
- ],
)
@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from sure import expect
+from sure import that, expect
from lettuce import step
from lettuce.core import Scenario
from lettuce.core import Feature
@@ -559,7 +559,7 @@ def test_single_scenario_single_scenario():
first_scenario = feature.scenarios[0]
- expect(first_scenario.tags).should.equal([
+ assert that(first_scenario.tags).deep_equals([
'many', 'other', 'basic', 'tags', 'here', ':)'])
@@ -580,21 +580,21 @@ def inspected_within_object(step):
@step(r'fill my email with [\'"]?([^\'"]+)[\'"]?')
def fill_email(step, email):
- assert expect(email).equals('gabriel@lettuce.it')
+ assert that(email).equals('gabriel@lettuce.it')
feature = Feature.from_string(FEATURE13)
first_scenario = feature.scenarios[0]
- assert expect(first_scenario.tags).equals(['runme'])
+ assert that(first_scenario.tags).equals(['runme'])
second_scenario = feature.scenarios[1]
- assert expect(second_scenario.tags).equals([])
+ assert that(second_scenario.tags).equals([])
third_scenario = feature.scenarios[2]
- assert expect(third_scenario.tags).equals(['slow'])
+ assert that(third_scenario.tags).equals(['slow'])
last_scenario = feature.scenarios[3]
- assert expect(last_scenario.tags).equals([])
+ assert that(last_scenario.tags).equals([])
result = feature.run()
print

0 comments on commit a100671

Please sign in to comment.