Ejemplo n.º 1
0
    def test_get_samples_instance_flavor(self):
        self.mox.ReplayAll()

        mgr = manager.AgentManager()
        pollster = pollsters_instance.InstanceFlavorPollster()
        samples = list(pollster.get_samples(mgr, {}, self.instance))
        self.assertEqual(len(samples), 1)
        self.assertEqual(samples[0].name, 'instance:m1.small')
Ejemplo n.º 2
0
 def test_get_samples_instance_flavor(self):
     mgr = manager.AgentManager()
     pollster = pollsters_instance.InstanceFlavorPollster()
     samples = list(pollster.get_samples(mgr, {}, [self.instance]))
     self.assertEqual(1, len(samples))
     self.assertEqual('instance:m1.small', samples[0].name)