Cleaning up migrations test

This commit is contained in:
Andrew Melton 2013-11-15 13:52:36 -05:00
parent da08e77af6
commit bfa146f130

View File

@ -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)
if len(migr_list) > 1:
msg = "Duplicate migrations found for number %s." % migr_number
self.fail(msg)