diff --git a/tests/test_init.py b/tests/test_init.py index 227c8796..8e9a3905 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -10,3 +10,10 @@ def test_version(self): except PackageNotFoundError: expected_version = None self.assertEqual(__version__, expected_version) + + def test_not_existing_version(self): + try: + expected_version = version("django-not-existing-newsletter") + except PackageNotFoundError: + expected_version = None + self.assertIsNone(expected_version)