Пример #1
0
 def get_file(self, platform):
     file = File()  # Real object and not a mock to get the true methods.
     file.version = self.version
     file.pk = 666
     file.platform = platform
     file.status = amo.STATUS_PUBLIC
     file.strict_compatibility = False
     file.binary_components = False
     return file
Пример #2
0
 def get_file(self, platform):
     file = File()  # Real object and not a mock to get the true methods.
     file.version = self.version
     file.pk = 666
     file.platform = platform
     file.status = amo.STATUS_PUBLIC
     file.strict_compatibility = False
     file.binary_components = False
     return file