def test_label_axis(self): axis = LabelAxis() with warnings.catch_warnings(record=True) as w: axis.positions = np.arange(10) self.assertEqual(w, [])