def METHOD_NAME(self):
    issue_tracker = f.IssueTrackerFactory(credential_type=CredentialTypes.Token.name)
    f.TokenCredentialFactory(token="234wer", issue_tracker=issue_tracker)
    self.assertEqual({"token": "234wer"}, issue_tracker.credential)