How to use the pywaffle.waffle.round_up_to_multiple function in pywaffle

To help you get started, we’ve selected a few pywaffle 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 gyli / PyWaffle / tests / test_utilities.py View on Github external
def test_round_up_to_multiple(self):
        self.assertEqual(round_up_to_multiple(x=12, base=5), 15)
        self.assertIsInstance(round_up_to_multiple(x=12, base=5), int)
github gyli / PyWaffle / tests / test_utilities.py View on Github external
def test_round_up_to_multiple(self):
        self.assertEqual(round_up_to_multiple(x=12, base=5), 15)
        self.assertIsInstance(round_up_to_multiple(x=12, base=5), int)