Beispiel #1
0
 def test_lookup_conf(self, dev_type, alias, index):
     conf = lookup.conf_by_alias(self.devices_conf, dev_type, alias)
     self.assertEqual(conf, self.devices_conf[index])
Beispiel #2
0
 def test_lookup_conf_missing(self, devices_conf):
     with pytest.raises(LookupError):
         lookup.conf_by_alias(devices_conf, 'memory', 'dimm0')
Beispiel #3
0
 def test_lookup_conf(self, dev_type, alias, index):
     conf = lookup.conf_by_alias(
         self.devices_conf, dev_type, alias)
     assert conf == self.devices_conf[index]
Beispiel #4
0
 def test_lookup_conf_error(self, dev_type, alias):
     with pytest.raises(LookupError):
         lookup.conf_by_alias(self.devices_conf, dev_type, alias)
Beispiel #5
0
 def test_lookup_conf(self, dev_type, alias, index):
     conf = lookup.conf_by_alias(
         self.devices_conf, dev_type, alias)
     self.assertEqual(conf, self.devices_conf[index])