Esempio n. 1
0
 def test__any_positive_rows_empty_rows(self):
     rows = []
     query_start, query_end = (10, 100)
     threshold = {k: 0.50 for k in self.features}
     self.assertFalse(
         _any_positive_rows(rows, query_start, query_end, threshold))
Esempio n. 2
0
 def test__any_positive_rows_true(self):
     rows = self.rows_example1
     query_start, query_end = (16150, 16351)
     threshold = {k: 0.40 for k in self.features}
     self.assertTrue(
         _any_positive_rows(rows, query_start, query_end, threshold))