def test_overlaps_that_not_overlapped(self):
        dt_range_1 = (
            datetime(year=2016, day=29, month=2,
                     hour=9, minute=10, second=10),
            datetime(year=2016, day=29, month=2,
                     hour=10, minute=20, second=10)
        )
        dt_range_2 = (
            datetime(year=2016, day=29, month=2,
                     hour=11, minute=12, second=10),
            datetime(year=2016, day=29, month=2,
                     hour=12, minute=22, second=12)
        )

        # also test that commutative property works :-/
        assert not overlaps(dt_range_1, dt_range_2)
        assert not overlaps(dt_range_2, dt_range_1)
    def test_overlaps_with_same_range(self):
        dt_range = (
            datetime(year=2016, day=29, month=2,
                     hour=9, minute=10, second=10),
            datetime(year=2016, day=29, month=2,
                     hour=10, minute=20, second=10)
        )

        assert overlaps(dt_range, dt_range)