def test_references_a_device(self): device = object() cmd = Action() cmd.device = device self.assertIs(cmd.device, device)