diff --git a/tests/i18n/test_management.py b/tests/i18n/test_management.py index e661daabe5e..c464a13295a 100644 --- a/tests/i18n/test_management.py +++ b/tests/i18n/test_management.py @@ -11,3 +11,12 @@ class TranslatableFileTests(SimpleTestCase): file_name = 'example' trans_file = TranslatableFile(dirpath=dirpath, file_name=file_name, locale_dir=None) self.assertEqual(repr(trans_file), '' % os.path.join(dirpath, file_name)) + + def test_eq(self): + dirpath = 'dir' + file_name = 'example' + trans_file = TranslatableFile(dirpath=dirpath, file_name=file_name, locale_dir=None) + trans_file_eq = TranslatableFile(dirpath=dirpath, file_name=file_name, locale_dir=None) + trans_file_not_eq = TranslatableFile(dirpath='tmp', file_name=file_name, locale_dir=None) + self.assertEqual(trans_file, trans_file_eq) + self.assertNotEqual(trans_file, trans_file_not_eq)