def test_user_gateway_get_shared_to(self):
        """Test UserGateway get_shared_to methods."""
        shares = self.user._gateway.get_shared_to()
        shares = list(shares)
        self.assertEqual(len(shares), 2)
        # this user only has shares shared to him
        self.assertEqual(shares[0].shared_by.id, self.sharer.id)
        self.assertEqual(shares[1].shared_by.id, self.sharer.id)
        shares = self.sharer._gateway.get_shared_to()
        shares = list(shares)
        self.assertEqual(shares, [])