def test_get_author_non_xsoar_support(self, author, expected): """ Test case when support is set to non xsoar, in that case partner. Expected behavior is not to override author str that was received as input. """ result_author = Pack._get_author(support_type="partner", author=author) assert result_author == expected
def test_get_author_xsoar_support(self, author): """ Tests case when support is set to xsoar. Expected result should be Cortex XSOAR. """ result_author = Pack._get_author(support_type="xsoar", author=author) assert result_author == Metadata.XSOAR_AUTHOR