Added test for serialization of LazyI18nString in settings

This commit is contained in:
Raphael Michel
2016-03-20 14:35:22 +01:00
parent e3ac04fe86
commit be4435cdd8
2 changed files with 7 additions and 0 deletions

View File

@@ -78,6 +78,9 @@ class LazyI18nString:
def __format__(self, format_spec):
return self.__str__()
def __eq__(self, other):
return self.data == other.data
class LazyGettextProxy:
def __init__(self, lazygettext):
self.lazygettext = lazygettext