How to use the area4.author_email function in area4

To help you get started, we’ve selected a few area4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github area4lib / area4 / tests.py View on Github external
def test_info(self):
        """Test info."""
        right_data = [
            "area4",
            "RDIL",
            "me@rdil.rocks",
            "Dividers in Python, the easy way!",
        ]
        from_class = [
            area4.name,
            area4.__author__,
            area4.author_email,
            area4.description,
        ]
        for i, e in enumerate(right_data):
            self.assertEqual(right_data[i], from_class[i])
        self.assertEqual(
            area4.area4info(),
            "Name: {0}\nAuthor: {1}\nAuthor Email: {2}\nDescription: {3}".format(
                right_data[0], right_data[1], right_data[2], right_data[3],
            ),