Ejemplo n.º 1
0
    def test_response_filter_logic(self):

        # outside case
        self.assertTrue(is_in(self.long, 50, 2400))

        # lo case
        self.assertTrue(is_in(self.long, 100, 200))

        # hi case
        self.assertTrue(is_in(self.long, 50, 1024))

        # 'hidden' lo case
        self.assertTrue(is_in(self.long, 250, 2000))

        # 'hidden' hi case
        self.assertTrue(is_in(self.long, 50, 250))

        # 'hidden' interval case w/ noticed channels inside
        self.assertTrue(is_in(self.long, 250, 600))

        # 'hidden' interval case w/ *no* noticed channels inside
        self.assertTrue(not is_in(self.short, 250, 600))
Ejemplo n.º 2
0
    def test_response_filter_logic(self):

        # outside case
        self.assertTrue( is_in(self.long, 50, 2400) )

        # lo case
        self.assertTrue( is_in(self.long, 100, 200) )

        # hi case
        self.assertTrue( is_in(self.long, 50, 1024) )

        # 'hidden' lo case
        self.assertTrue( is_in(self.long, 250, 2000) )

        # 'hidden' hi case
        self.assertTrue( is_in(self.long, 50, 250) )

        # 'hidden' interval case w/ noticed channels inside
        self.assertTrue( is_in(self.long, 250, 600) )

        # 'hidden' interval case w/ *no* noticed channels inside
        self.assertTrue( not is_in(self.short, 250, 600) )
Ejemplo n.º 3
0
def test_not_in_short():
    # 'hidden' interval case w/ *no* noticed channels inside
    assert not is_in(SHORTVALS, 250, 600)
Ejemplo n.º 4
0
def test_is_in_long(lo, hi):
    assert is_in(LONGVALS, lo, hi)