def test_lexicographics(self): """Tests that lexicographics returns the correct values.""" expected = (12, 5, decimal.Decimal(407) / 50) returned = task_03.lexicographics(data.SHAKESPEARE) self.assertEqual(returned, expected)
def test_to_analyze_required(self): """Tests that to_analyze is a required argument""" with self.assertRaises(TypeError): task_03.lexicographics()