def test_get_targets(self):
     accounts = [DataverseAccountFactory() for n in range(10)]
     targets = get_targets()
     [assert_equal(x.provider, self.account.provider) for x in self.account.__class__.find()]
     assert_equal(self.account.__class__.find().count(), 11)
     assert_equal(targets.count(), 1)
     assert_equal(targets[0]._id, self.account._id)
 def setUp(self):
     super(TestDemoHostMigration, self).setUp()
     self.account = DataverseAccountFactory(display_name=OLD_HOST, oauth_key=OLD_HOST)