<commit_before>Charm Test
==========

.. image:: https://img.shields.io/pypi/v/charm-test.svg
    :target: https://pypi.python.org/pypi/charm-test
    :alt: Latest Version

.. image:: https://travis-ci.org/freeekanayaka/charm-test.svg?branch=master
    :target: https://travis-ci.org/freeekanayaka/charm-test
    :alt: Build Status

.. image:: https://coveralls.io/repos/github/freeekanayaka/charm-test/badge.svg?branch=master
    :target: https://coveralls.io/github/freeekanayaka/charm-test?branch=master
    :alt: Coverage

.. image:: https://readthedocs.org/projects/charm-test/badge/?version=latest
    :target: http://charm-test.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

This package sports a collection of helpers for unit-testing Juju charms.

In particular, it extends systemfixtures_ by faking out hook tools
processes (`config-get`, `juju-log`, etc), so authors have a complete suite
of fakes for the typical "boundaries" of a Juju charm.

.. _systemfixtures: https://github.com/freeekanayaka/system-fixtures

.. code:: python

   >>> from testtools.matchers import DirExists<commit_msg>Update link to systemfixtures (#6)<commit_after>Charm Test
==========

.. image:: https://img.shields.io/pypi/v/charm-test.svg
    :target: https://pypi.python.org/pypi/charm-test
    :alt: Latest Version

.. image:: https://travis-ci.org/freeekanayaka/charm-test.svg?branch=master
    :target: https://travis-ci.org/freeekanayaka/charm-test
    :alt: Build Status

.. image:: https://coveralls.io/repos/github/freeekanayaka/charm-test/badge.svg?branch=master
    :target: https://coveralls.io/github/freeekanayaka/charm-test?branch=master
    :alt: Coverage

.. image:: https://readthedocs.org/projects/charm-test/badge/?version=latest
    :target: http://charm-test.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

This package sports a collection of helpers for unit-testing Juju charms.

In particular, it extends systemfixtures_ by faking out hook tools
processes (`config-get`, `juju-log`, etc), so authors have a complete suite
of fakes for the typical "boundaries" of a Juju charm.

.. _systemfixtures: https://github.com/testing-cabal/systemfixtures

.. code:: python

   >>> from testtools.matchers import DirExists
{'fraction_non_alphanumeric': 0.1437994722955145, 'fraction_numerical': 0.00043975373790677223, 'mean_word_length': 4.182232346241458, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1391937', 'n_tokens_mistral': 793, 'n_tokens_neox': 764, 'n_words': 159}