def test_get_config(self): bt = SkLearnBallTreeHashIndex() bt_c = bt.get_config() nose.tools.assert_equal(len(bt_c), 3) nose.tools.assert_in('file_cache', bt_c) nose.tools.assert_in('leaf_size', bt_c) nose.tools.assert_in('random_seed', bt_c) nose.tools.assert_equal(bt_c['file_cache'], None)
def test_get_config(self): bt = SkLearnBallTreeHashIndex() bt_c = bt.get_config() self.assertEqual(len(bt_c), 3) self.assertIn('cache_element', bt_c) self.assertIn('leaf_size', bt_c) self.assertIn('random_seed', bt_c) self.assertIsInstance(bt_c['cache_element'], dict) self.assertIsNone(bt_c['cache_element']['type'])
def test_get_config(self): bt = SkLearnBallTreeHashIndex() bt_c = bt.get_config() nose.tools.assert_equal(len(bt_c), 3) nose.tools.assert_in('cache_element', bt_c) nose.tools.assert_in('leaf_size', bt_c) nose.tools.assert_in('random_seed', bt_c) nose.tools.assert_is_instance(bt_c['cache_element'], dict) nose.tools.assert_is_none(bt_c['cache_element']['type'])