def test_list_to_str(self): tags = None tags_str = list_to_str(tags) self.assertEqual(None, tags_str) tags = [] tags_str = list_to_str(tags) self.assertEqual('', tags_str) tags = ['tag1', 'tag2', 'tag3'] tags_str = list_to_str(tags) self.assertEqual('tag1,tag2,tag3', tags_str)
def test_list_to_str(self): tags = None tags_str = list_to_str(tags) self.assertEqual(None, tags_str) tags = [] tags_str = list_to_str(tags) self.assertEqual('', tags_str) tags = ['tag1', 'tag2', 'tag3'] tags_str = list_to_str(tags) self.assertEqual('tag1,tag2,tag3', tags_str)
def decode(self): return { 'message': self.message, 'teams': list_to_str(self.teams), 'alias': self.alias, 'description': self.description, 'recipients': list_to_str(self.recipients), 'actions': list_to_str(self.actions), 'source': self.source, 'tags': list_to_str(self.tags), 'details': self.details, 'entity': self.entity, 'user': self.user, 'note': self.note }
def decode(self): return { 'message': self.message, 'teams': list_to_str(self.teams), 'alias': self.alias, 'description': self.description, 'recipients': list_to_str(self.recipients), 'actions': list_to_str(self.actions), 'source': self.source, 'tags': list_to_str(self.tags), 'details': self.details, 'entity': self.entity, 'user': self.user, 'note': self.note }
def decode(self): return { 'id': self.id, 'alias': self.alias, 'tags': list_to_str(self.tags), 'user': self.user, 'note': self.note, 'source': self.source }
def decode(self): return { 'id': self.id, 'alias': self.alias, 'tags': list_to_str(self.tags), 'user': self.user, 'note': self.note, 'source': self.source }
def decode(self): return { 'createdAfter': convert_from_date(self.created_after), 'createdBefore': convert_from_date(self.created_before), 'updatedAfter': convert_from_date(self.updated_after), 'updatedBefore': convert_from_date(self.updated_before), 'limit': self.limit, 'status': self.status, 'tags': list_to_str(self.tags), 'tagsOperator': self.tags_operator }
def decode(self): return { 'createdAfter': convert_from_date(self.created_after), 'createdBefore': convert_from_date(self.created_before), 'updatedAfter': convert_from_date(self.updated_after), 'updatedBefore': convert_from_date(self.updated_before), 'limit': self.limit, 'status': self.status, 'tags': list_to_str(self.tags), 'tagsOperator': self.tags_operator }