Exemplo n.º 1
0
    def test_bounds_checker_fails(self, months):
        bounds = [(0, 8759), (8759, 8760)]

        expected = False

        time_set = IntervalSet('months', months)
        actual = time_set.check_interval_bounds_equal(bounds)

        assert actual == expected
Exemplo n.º 2
0
    def test_bounds_checker(self, months):
        bounds = [(0, 1), (1, 2)]

        expected = True

        time_set = IntervalSet('months', months)
        actual = time_set.check_interval_bounds_equal(bounds)

        assert actual == expected