Exemplo n.º 1
0
 def test_editing_with_args(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value('bar', 'quux')
     self._assert_import(0, 'bar', ['quux'])
     assert_true(self.parent.dirty)
     ctrl.set_value('name', 'a1 | a2')
     self._assert_import(0, 'name', ['a1', 'a2'])
Exemplo n.º 2
0
 def test_editing_with_args(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value("bar", "quux")
     self._assert_import(0, "bar", ["quux"])
     assert_true(self.parent.dirty)
     ctrl.set_value("name", "a1 | a2")
     self._assert_import(0, "name", ["a1", "a2"])
Exemplo n.º 3
0
 def test_editing_with_args(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value('bar', 'quux')
     self._assert_import(0, 'bar', ['quux'])
     assert_true(self.parent.dirty)
     ctrl.set_value('name', 'a1 | a2')
     self._assert_import(0, 'name', ['a1', 'a2'])
Exemplo n.º 4
0
 def test_publishing_change(self):
     ctrl = ImportController(self.parent, self.parent[1]._import)
     ctrl.set_value('new name')
     self._test_listener('new name', 'resource', self.changed_import_listener)
Exemplo n.º 5
0
 def test_editing_with_alias(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value('newname', '', 'namenew')
     self._assert_import(0, 'newname', exp_alias='namenew')
     ctrl.set_value('again')
     self._assert_import(0, 'again')
Exemplo n.º 6
0
 def test_editing(self):
     ctrl = ImportController(self.parent, self.parent[1]._import)
     ctrl.set_value('foo')
     self._assert_import(1, 'foo')
     assert_true(self.parent.dirty)
Exemplo n.º 7
0
 def test_publishing_change(self):
     ctrl = ImportController(self.parent, self.parent[1]._import)
     ctrl.set_value('new name')
     self._test_listener('new name', 'resource', self.changed_import_listener)
Exemplo n.º 8
0
 def test_editing_with_alias(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value('newname', '', 'namenew')
     self._assert_import(0, 'newname', exp_alias='namenew')
     ctrl.set_value('again')
     self._assert_import(0, 'again')
Exemplo n.º 9
0
 def test_editing(self):
     ctrl = ImportController(self.parent, self.parent[1]._import)
     ctrl.set_value('foo')
     self._assert_import(1, 'foo')
     assert_true(self.parent.dirty)
Exemplo n.º 10
0
 def test_editing_with_alias(self):
     ctrl = ImportController(self.parent, self.parent[0]._import)
     ctrl.set_value("newname", "", "namenew")
     self._assert_import(0, "newname", exp_alias="namenew")
     ctrl.set_value("again")
     self._assert_import(0, "again")