def _assert_tags(self, model, tags=None):
tags = tags if tags else []<EOL>expected_tags = (self.existing_tags + tags)<EOL>self.assertEqual(sorted(model.tags),<EOL>sorted(expected_tags))<EOL>
Assert given tags and already existing tags are present.