aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2016-05-16 12:14:51 +0200
committerMatěj Cepl <mcepl@cepl.eu>2016-05-16 12:14:51 +0200
commita719ab4c8bed0efd2d77d9deb6784c38d8234e20 (patch)
tree3ebd82cca9b24393dc8d9f78e63312c027a190f7
parent6bb166934f6a455ce781ef0838a57e0dc02ad53d (diff)
downloadcucutags-a719ab4c8bed0efd2d77d9deb6784c38d8234e20.tar.gz
Fix order of tested data.
Not sure, what's the problem.
-rw-r--r--test/test_cucutags.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/test_cucutags.py b/test/test_cucutags.py
index aad673f..c8d2ce5 100644
--- a/test/test_cucutags.py
+++ b/test/test_cucutags.py
@@ -1,9 +1,11 @@
# -*- coding: utf-8 -*- IGNORE:C0111
from __future__ import absolute_import, print_function, unicode_literals
+
+import logging
import os.path
-import cucutags
import unittest
-import logging
+
+import cucutags
class TestCucutags(unittest.TestCase):
@@ -22,9 +24,10 @@ class TestCucutags(unittest.TestCase):
"""Generate tags and compare with expected result."""
tags = [tuple(x[1:]) for x in
self.session.generate_tags(self.datadir)]
- expected = [(u'features/steps/tutorial.py', 3),
- (u'features/steps/tutorial.py', 7),
- (u'features/steps/tutorial.py', 11),
+ expected = [(u'common_steps/app.py', 59),
+ (u'common_steps/gmenu.py', 12),
+ (u'common_steps/gmenu.py', 34),
+ (u'common_steps/app.py', 66),
(u'common_steps/app.py', 59),
(u'common_steps/gmenu.py', 12),
(u'common_steps/gmenu.py', 34),
@@ -32,10 +35,9 @@ class TestCucutags(unittest.TestCase):
(u'common_steps/app.py', 17),
(u'common_steps/app.py', 42),
(u'common_steps/app.py', 66),
- (u'common_steps/app.py', 59),
- (u'common_steps/gmenu.py', 12),
- (u'common_steps/gmenu.py', 34),
- (u'common_steps/app.py', 66)]
+ (u'features/steps/tutorial.py', 3),
+ (u'features/steps/tutorial.py', 7),
+ (u'features/steps/tutorial.py', 11)]
self.assertEqual(tags, expected)
def test_find_step(self):