Test helpers - unihan_etl.test

Test helpers functions for downloading and processing Unihan data.

unihan_etl.test.assert_dict_contains_subset(subset, dictionary, msg=None)[source]

Ported assertion for dict subsets in py.test.

Return type:

None

Parameters:
  • subset (dict) – needle

  • dictionary (dict) – haystack

  • msg (str, optional) – message display if assertion fails

  • 'test' (>>> not assert_dict_contains_subset({) –

  • 'test'

  • last) (Traceback (most recent call) –

  • AssertionError (None) –