In Python 3.2 assertItemsEqual is replaced by assertCountEqual

This commit is contained in:
Jelle van der Waa 2018-07-31 21:05:25 +02:00
parent 93a95a3c83
commit 86f5b0ad27

View File

@ -58,7 +58,7 @@ def test_read_packages(self):
packages = Package.objects.all()
import_packages = ["{}-{}-{}".format(pkg.pkgname, pkg.pkgver, pkg.pkgrel) for pkg in packages]
self.assertItemsEqual(files, import_packages)
self.assertCountEqual(files, import_packages)
def test_flagoutofdate(self):
pkg = self.create_pkg()