Skip to content

Instantly share code, notes, and snippets.

@asgillmor
Created May 10, 2018 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save asgillmor/290727f193efedaab927f94107122edf to your computer and use it in GitHub Desktop.
Save asgillmor/290727f193efedaab927f94107122edf to your computer and use it in GitHub Desktop.
def test_business_filters(self, business_rdd):
expected_businesses = [5, 6, 8, 9, 10]
assert sorted(expected_businesses) == sorted(
business_rdd.filter(business_filters).map(lambda l: l['id']).collect())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment