assert.strictEqual(byline,'<span class="mw-mmv-attr">Cat</span>','Attribution found in bylines');
// Author and source present
byline=formatter.getByline(author,source);
assert.strictEqual(byline,'(multimediaviewer-credit: <span class="mw-mmv-author">Homer</span>, <span class="mw-mmv-source">Iliad</span>)','Author and source found in bylines');
// Only author present
byline=formatter.getByline(author);
assert.strictEqual(byline,'<span class="mw-mmv-author">Homer</span>','Author found in bylines.');
// Only source present
byline=formatter.getByline(undefined,source);
assert.strictEqual(byline,'<span class="mw-mmv-source">Iliad</span>','Source found in bylines.');