From bfa146f130b6eba0430703eab006cb11edb3d3d5 Mon Sep 17 00:00:00 2001 From: Andrew Melton Date: Fri, 15 Nov 2013 13:52:36 -0500 Subject: [PATCH] Cleaning up migrations test --- tests/unit/test_migrations_files.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/unit/test_migrations_files.py b/tests/unit/test_migrations_files.py index 99fd13a..a863c4e 100644 --- a/tests/unit/test_migrations_files.py +++ b/tests/unit/test_migrations_files.py @@ -22,11 +22,6 @@ class MigrationsTestCase(StacktachBaseTestCase): migr_list = migrs.get(migr_number, []) migr_list.append(f) migrs[migr_number] = migr_list - - dups = [] - for num in migrs: - if len(migrs[num]) > 1: - dups.append(num) - - msg = "Duplicate migrations found for number(s) %s" % ' '.join(dups) - self.assertEqual(len(dups), 0, msg) \ No newline at end of file + if len(migr_list) > 1: + msg = "Duplicate migrations found for number %s." % migr_number + self.fail(msg) \ No newline at end of file