Exemplo n.º 1
0
 def test_character_distribution_example(self):
     distribution = get_character_distribution("abc")
     self.assertTrue("a" in distribution)
     self.assertEqual(1, distribution["a"])
     self.assertTrue("b" in distribution)
     self.assertEqual(1, distribution["b"])
     self.assertTrue("c" in distribution)
     self.assertEqual(1, distribution["c"])
def test_character_distribution_example_1():
    """
    Test with example 1.
    :return:
    """
    distribution = get_character_distribution("abc")
    assert_true("a" in distribution)
    assert_equal(distribution["a"], 1)
    assert_true("b" in distribution)
    assert_equal(distribution["b"], 1)
    assert_true("c" in distribution)
    assert_equal(distribution["c"], 1)