Replace 'assert' with 'assert*' method. Convert tests.unit.forms.widget_tests to use TestCase class. Convert bankcard tests to use TestCase. Convert tests.unit.logging_tests to use TestCase.
str.decode doesn't exist in Python 3 anymore, solve it using the smart_text function from django.utils.encoding. This fixes #1708
- Restructure into unit and integration tests. - Add more tests for the various basket properties.