def METHOD_NAME(self):
    "test MSPileup query API"
    pname = '/skldjflksdjf/skldfjslkdjf/PREMIX'
    spec = {"pileupName": pname}
    res = self.mgr.getPileup(spec)
    self.assertEqual(len(res), 0)
    spec = {"bla": 1}
    res = self.mgr.sanitizeQuery(spec)
    # validate should return list of single dictionary
    # [{'data': {'bla': 1}, 'message': 'schema error', 'code': 7, 'error': 'MSPileupError'}]
    self.assertEqual(len(res), 1)
    err = res[0]
    self.assertEqual(err.get('error'), 'MSPileupError')
    self.assertEqual(err.get('code'), MSPILEUP_SCHEMA_ERROR)
    # and we should get zero results
    res = self.mgr.getPileup(spec)
    self.assertEqual(len(res), 0)