def test_init_with_name_and_value(self):
     # value trumps name. Not sure why but this is the way it is.
     item = ui_traits.StatusItem(
         name="some_trait_name",
         width=10.0,
         value="some_other_name",
     )
     self.assertEqual(item.name, "some_other_name")
 def test_init(self):
     item = ui_traits.StatusItem(
         name="some_trait_name",
         width=10.0,
     )
     self.assertEqual(item.name, "some_trait_name")