Пример #1
0
    def test_merge_wrong_class(self):
        command = self.command
        command.mergeable = True
        other_command = ComponentCommand(component=self.component)

        with self.assertTraitDoesNotChange(command, 'data'):
            merged = command.merge(other_command)

        self.assertFalse(merged)
        self.assertEqual(command.data, (25, 25))
Пример #2
0
 def setUp(self):
     self.component = Component()
     self.command = ComponentCommand(component=self.component)