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))
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) )
def test_not_in_short(): # 'hidden' interval case w/ *no* noticed channels inside assert not is_in(SHORTVALS, 250, 600)
def test_is_in_long(lo, hi): assert is_in(LONGVALS, lo, hi)