docstr: Test single- and multi-asset queries on static restrictions
docstr_tok: ["Test","single-","and","multi-asset","queries","on","static","restrictions"]
code: def test_static_restrictions(self):
      """
      Test single- and multi-asset queries on static restrictions
      """
  
      restricted_a1 = self.ASSET1
      restricted_a2 = self.ASSET2
      unrestricted_a3 = self.ASSET3
  
      rl = StaticRestrictions([restricted_a1, restricted_a2])
      assert_not_restricted = partial(self.assert_not_restricted, rl)
      assert_is_restricted = partial(self.assert_is_restricted, rl)
      assert_all_restrictions = partial(
          self.assert_all_restrictions, rl
      )
  
      for dt in [
          str_to_ts(dt_str)
          for dt_str in (
              "2011-01-03",
              "2011-01-04",
              "2011-01-04 1:01",
              "2020-01-04",
          )
      ]:
          assert_is_restricted(restricted_a1, dt)
          assert_is_restricted(restricted_a2, dt)
          assert_not_restricted(unrestricted_a3, dt)
  
          assert_all_restrictions([True, True, False], dt)
  
imports: import pandas
  from pandas.util.testing import assert_series_equal
  from six import iteritems
  from functools import partial
  from toolz import groupby
  from catalyst.finance.asset_restrictions import RESTRICTION_STATES, Restriction, HistoricalRestrictions, StaticRestrictions, SecurityListRestrictions, NoRestrictions, _UnionRestrictions
  from catalyst.testing import parameter_space
  from catalyst.testing.fixtures import WithDataPortal, CatalystTestCase
label_desc: Use image node_id 8 for calling the RestrictionsTestCase obj's underlying member method code with example usage: obj.test_static_restrictions() without return types