self.assertIsNot(wim, None)
# and a array of pairs 'wan' <> 'pop' connections
self.assertIsNot(wim, None)
# and a array of pairs 'wan' <> 'pop' connections
self.assertEqual(len(list(pairs)), 2 * eg.NUM_WIMS)
def test_get_wim_port_mappings_multiple(self):
self.assertEqual(len(list(pairs)), 2 * eg.NUM_WIMS)
def test_get_wim_port_mappings_multiple(self):
self.assertEqual(mappings[0]['wim_id'], uuid('wim0'))
self.assertEqual(mappings[0]['datacenter_id'], uuid('dc0'))
self.assertEqual(mappings[0]['wim_id'], uuid('wim0'))
self.assertEqual(mappings[0]['datacenter_id'], uuid('dc0'))
# when we retreive the mappings for more then one wim/datacenter
# the grouping should still work properly
mappings = self.persist.get_wim_port_mappings(
wim=['wim0', 'wim1'], datacenter=['dc0', 'dc1'])
self.assertEqual(len(mappings), 4)
# when we retreive the mappings for more then one wim/datacenter
# the grouping should still work properly
mappings = self.persist.get_wim_port_mappings(
wim=['wim0', 'wim1'], datacenter=['dc0', 'dc1'])
self.assertEqual(len(mappings), 4)
self.assertEqual(len(list(pairs)), 6)
def test_get_actions_in_group(self):
self.assertEqual(len(list(pairs)), 6)
def test_get_actions_in_group(self):