'Test whether the right number of interactors is returned'

@blocking_call_on_reactor_thread
def test_get_num_interactors(self):

    self.block2 = TestBlock(previous=self.block1, transaction={'up': 42, 'down': 42})
    self.db.add_block(self.block1)
    self.db.add_block(self.block2)
    self.assertEqual((2, 2), self.db.get_num_unique_interactors(self.block1.public_key))
