# -*- coding: utf8 - *-
from __future__ import absolute_import, print_function, unicode_literals

import examples.basic_usage
import examples.dataset
import examples.variant_ts_difficulties
import examples.variants


def test_dataset(unihan_options):
    examples.dataset.run()


def test_variants(unihan_options):
    examples.variants.run(unihan_options=unihan_options)


def test_ts_difficulties(unihan_options):
    examples.variant_ts_difficulties.run(unihan_options=unihan_options)


def test_basic_usage(unihan_options):
    examples.basic_usage.run(unihan_options=unihan_options)

@@ -510,32 +510,40 @@
 e(unihan_options
+, capsys
 ):%0A    examples.
@@ -569,28 +569,164 @@
 han_options=unihan_options)%0A
+%0A    captured = capsys.readouterr()%0A%0A    assert 'lookup for %E5%A5%BD: good' in captured.out%0A    assert 'matches for %22good%22: %E5%A5%BD' in captured.out%0A

Add stdout tests for basic usage example