Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests to use assertIn rather than assertTrue with in so we can…
… have useful error messages
  • Loading branch information
holdenk committed May 4, 2018
commit af21aa7ac3363ae16e4b7839b7aa054c9facc26f
4 changes: 2 additions & 2 deletions python/pyspark/ml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1368,8 +1368,8 @@ def test_linear_regression_pmml_basic(self):
lr_path = path + "/lr-pmml"
model.write().format("pmml").save(lr_path)
pmml_text = self.sc.textFile(lr_path).collect()
self.assertTrue("Apache Spark" in pmml_text)
self.assertTrue("xs:element" in pmml_text)
self.assertIn("Apache Spark", pmml_text)
self.assertIn("xs:element", pmml_text)

def test_logistic_regression(self):
lr = LogisticRegression(maxIter=1)
Expand Down