def test_NullLocator_set_params():
 loc = mticker.NullLocator()
 with warnings.catch_warnings(record=True) as w:
  warnings.simplefilter(u'always')
  loc.set_params()
  assert (len(w) == 1)

def test_NullLocator_set_params ( ) : loc = mticker . NullLocator ( ) with warnings . catch_warnings ( record = True ) as w : warnings . simplefilter ( u'always' ) loc . set_params ( ) assert ( len ( w ) == 1 )
create null locator .