Author: adc
Date: Thu Jun 13 06:01:21 2013
New Revision: 1492533

URL: http://svn.apache.org/r1492533
Log:
Fixed test

Modified:
    steve/trunk/tests/test_voters.py

Modified: steve/trunk/tests/test_voters.py
URL: 
http://svn.apache.org/viewvc/steve/trunk/tests/test_voters.py?rev=1492533&r1=1492532&r2=1492533&view=diff
==============================================================================
--- steve/trunk/tests/test_voters.py (original)
+++ steve/trunk/tests/test_voters.py Thu Jun 13 06:01:21 2013
@@ -17,20 +17,17 @@
 # under the License.
 #
 import os
-
-from brownie.datastructures import Counter
-
-from steve.voters import get_group
+import steve
 
 
 DATA_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
 
 
 def test_duplicates():
-    voters = get_group(os.path.join(DATA_DIR, 'duplicates.txt'))
+  voters = steve.get_group(os.path.join(DATA_DIR, 'duplicates.txt'))
 
-    assert len(voters) == 3
-    assert '[email protected]' in voters
-    assert '[email protected]' in voters
-    assert '[email protected]' in [x for x, y in Counter(voters).items() if y > 1]
+  assert len(voters) == 3
+  assert '[email protected]' in voters
+  assert '[email protected]' in voters
+  assert voters.count('[email protected]') == 2
 


Reply via email to