summaryrefslogtreecommitdiff
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2012-07-10 09:29:18 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2012-07-10 09:29:18 -0700
commit65db1ac3c0e90bbe541caa1902314aa097f1997a (patch)
tree1cad45506f2a160f6b198144d9b9b481240f1670 /tests/test_utils.py
parentc35e781466eb6c630e1321489927a4390401bb9c (diff)
downloadfactory-boy-65db1ac3c0e90bbe541caa1902314aa097f1997a.tar
factory-boy-65db1ac3c0e90bbe541caa1902314aa097f1997a.tar.gz
Switch `sorted` argument from `cmp` to `key`.
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 6fd6ee2..f30c0e3 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -25,24 +25,6 @@ from factory import utils
from .compat import unittest
-class DecLengthCompareTestCase(unittest.TestCase):
- def test_reciprocity(self):
- self.assertEqual(1, utils.declength_compare('a', 'bb'))
- self.assertEqual(-1, utils.declength_compare('aa', 'b'))
-
- def test_not_lexical(self):
- self.assertEqual(1, utils.declength_compare('abc', 'aaaa'))
- self.assertEqual(-1, utils.declength_compare('aaaa', 'abc'))
-
- def test_same_length(self):
- self.assertEqual(-1, utils.declength_compare('abc', 'abd'))
- self.assertEqual(1, utils.declength_compare('abe', 'abd'))
-
- def test_equality(self):
- self.assertEqual(0, utils.declength_compare('abc', 'abc'))
- self.assertEqual(0, utils.declength_compare([1, 2, 3], [1, 2, 3]))
-
-
class ExtractDictTestCase(unittest.TestCase):
def test_empty_dict(self):
self.assertEqual({}, utils.extract_dict('foo', {}))