def test_bad_mlt(self):
        self.assertRaises(ValueError, lambda: MLT(1))
        self.assertRaises(ValueError, lambda: MLT(1, index='foo'))
        self.assertRaises(ValueError, lambda: MLT(1, doctype='foo'))
Tests S or index and doc_type is specified.
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/tests/test_mlt.py/MoreLikeThisTest.test_bad_mlt