コード例 #1
0
 def test_down_sample_probe_index_invalid_set(self):
     A = read_csv_metadata(path_a)
     B = read_csv_metadata(path_b, key='ID')
     in_index = _inv_index(A)
     s_tbl_indices = _probe_index(B, 5, len(A), in_index)
     self.assertTrue(type(s_tbl_indices) is set)
コード例 #2
0
 def test_down_sample_inv_index_value_check(self):
     A = read_csv_metadata(path_a)
     inv_index = _inv_index(A)
     self.assertNotEqual(len(inv_index.get('beach')), 0)
コード例 #3
0
 def test_down_sample_inv_index_valid_1(self):
     A = read_csv_metadata(path_a)
     inv_index = _inv_index(A)
     self.assertNotEqual(len(inv_index), 0)
コード例 #4
0
 def test_down_sample_inv_index_key_check(self):
     A = read_csv_metadata(path_a)
     inv_index = _inv_index(A)
     self.assertTrue('meadows' in inv_index)
コード例 #5
0
 def test_down_sample_probe_index_validchk1(self):
     A = read_csv_metadata(path_a)
     B = read_csv_metadata(path_b, key='ID')
     in_index = _inv_index(A)
     s_tbl_indices = _probe_index(B, 5, len(A), in_index)
     self.assertNotEqual(len(s_tbl_indices), 0)