def test_str(self):
     platform = PlatformFactory.build()
     assert str(platform) == '{} (.deb)'.format(platform.name)
Exemple #2
0
 def test_field_validation(self, field, value, errors_dict):
     platform = PlatformFactory.build()
     setattr(platform, field, value)
     validation_test(platform, errors_dict)