dannysepler / pytestify

Automatically convert unittests to pytest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assert Count Equal with message breaks

dannysepler opened this issue · comments

import unittest

class TestMyThing(unittest.TestCase):
    def test_thing(self):
        self.assertCountEqual([], [], 'some error')

Rewrites to:

import unittest

class TestMyThing:
    def test_thing(self):
        assert sorted([]) == sorted([], 'some error')

which is not valid