Skip to content

Commit

Permalink
Added test case for mp
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Borsodi-Benson committed Jul 21, 2016
1 parent 9ab2f58 commit fd0f7dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vis/tests/test_frequency_experimenter.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ def test_run_3(self):
else:
self.assertEqual(self.freq_d[each], right_df['d'][each])

def test_mp(self):
def fake_func(dataframe, my):
return dataframe

freq = FrequencyExperimenter(self.in_a)
result = freq._do_multiprocessing(fake_func, [[2, 1]])
self.assertEqual([2], result)

#--------------------------------------------------------------------------------------------------#
# Definitions #
#--------------------------------------------------------------------------------------------------#
Expand Down

0 comments on commit fd0f7dd

Please sign in to comment.