summaryrefslogtreecommitdiff
path: root/test_tablib.py
diff options
context:
space:
mode:
authorKenneth Reitz <me@kennethreitz.org>2016-02-07 06:40:46 -0500
committerKenneth Reitz <me@kennethreitz.org>2016-02-07 06:40:46 -0500
commita774789252d41522d4ec8b0e2c212aff4a33904d (patch)
tree0288c7c237a00ce4f7f588082e6dcbece2ddd67f /test_tablib.py
parent995eabad37c827d34539500630c710ccf510d7c1 (diff)
downloadtablib-a774789252d41522d4ec8b0e2c212aff4a33904d.tar.gz
/s/unique/remove_duplicates
#182
Diffstat (limited to 'test_tablib.py')
-rwxr-xr-xtest_tablib.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test_tablib.py b/test_tablib.py
index 529b39d..64d1604 100755
--- a/test_tablib.py
+++ b/test_tablib.py
@@ -794,7 +794,7 @@ class TablibTestCase(unittest.TestCase):
self.assertEqual(third_row, expected_third)
- def test_unique(self):
+ def test_remove_duplicates(self):
"""Unique Rows."""
self.founders.append(self.john)
@@ -805,7 +805,7 @@ class TablibTestCase(unittest.TestCase):
self.assertEqual(self.founders[2], self.founders[5])
self.assertEqual(self.founders.height, 6)
- self.founders.unique()
+ self.founders.remove_duplicates()
self.assertEqual(self.founders[0], self.john)
self.assertEqual(self.founders[1], self.george)
@@ -832,16 +832,16 @@ class TablibTestCase(unittest.TestCase):
def test_subset(self):
"""Create a subset of a dataset"""
-
+
rows = (0, 2)
columns = ('first_name','gpa')
-
+
data.headers = self.headers
data.append(self.john)
data.append(self.george)
data.append(self.tom)
-
+
#Verify data is truncated
subset = data.subset(rows=rows, cols=columns)
self.assertEqual(type(subset), tablib.Dataset)