def test_parse_assignee_two_args(self): test_data: str = 'はじめに,田所 浩二' result: ArticleInfo = ArticleInfo('はじめに', Assignee(family='田所', name='浩二')) self.assertEqual(result, assignees.parse_assignee(test_data))
def test_parse_assignee_one_args(self): test_data: str = 'はじめに' result: ArticleInfo = ArticleInfo('はじめに', Assignee()) self.assertEqual(result, assignees.parse_assignee(test_data))
def test_parse_assignee_three_args(self): test_data: str = 'はじめに,田所 浩二,114514' result: ArticleInfo = ArticleInfo('はじめに', Assignee('114514', '田所', '浩二')) self.assertEqual(result, assignees.parse_assignee(test_data))