def test_types(self, path, path_type):
    """Tests whether various types of objects are valid."""
    test_config = mock_config.get_config()
    self.assertEqual(path_type, config_path.get_type(path, test_config))