Exemplo n.º 1
0
    def test_apply_model_only_combobox(self):
        invalid_types = [1, "One", u'1', {'1': "one"}, VMListModeler(
            mock_domains_info)]

        for invalid_type in invalid_types:
            with self.assertRaises(TypeError):
                self.apply_model(invalid_type, [])
Exemplo n.º 2
0
 def _new_vm_list_modeler(self):
     return VMListModeler(mock_domains_info)
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     unittest.TestCase.__init__(self, *args, **kwargs)
     VMListModeler.__init__(self, mock_domains_info)
Exemplo n.º 4
0
 def _new_vm_list_modeler(self):
     return VMListModeler(self._entries_info)