def test_status_set_invalid_state(self): self.assertRaises(ValueError, hookenv.status_set, 'random', 'message')