How to use the area4.divider 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_dividers(self):
        """Test dividers."""
        try:
            for i in range(len(self.raw_dividers)):
                # Try to match the raw divider with the result
                # of the function:
                if i != 35 and i != 0 and i != 32:
                    self.assertEqual(
                        self.raw_dividers[i].replace("\n", ""),
                        area4.divider(i),
                        f"Divider number {i} was not the same in the file and in the code. Please ask a maintainer for help.",
                    )
                elif (i == 35 or i == 32) and i != 0:
                    self.assertNotEqual(self.raw_dividers[i], area4.divider(i))
        finally:
            pass
github area4lib / area4 / tests.py View on Github external
def test_dividers(self):
        """Test dividers."""
        try:
            for i in range(len(self.raw_dividers)):
                # Try to match the raw divider with the result
                # of the function:
                if i != 35 and i != 0 and i != 32:
                    self.assertEqual(
                        self.raw_dividers[i].replace("\n", ""),
                        area4.divider(i),
                        f"Divider number {i} was not the same in the file and in the code. Please ask a maintainer for help.",
                    )
                elif (i == 35 or i == 32) and i != 0:
                    self.assertNotEqual(self.raw_dividers[i], area4.divider(i))
        finally:
            pass