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