Esempio n. 1
0
 def test_provisioned_state(self):
     info = {
         "name": "billy-bob",
         "uid": "furblewurbleburble",
         "netboot_enabled": False}
     machine = machine_from_dict(info)
     self.assertEquals(machine.state, "provisioned")
Esempio n. 2
0
 def test_provisioned_state(self):
     info = {
         "name": "billy-bob",
         "uid": "furblewurbleburble",
         "netboot_enabled": False
     }
     machine = machine_from_dict(info)
     self.assertEquals(machine.state, "provisioned")
Esempio n. 3
0
    def test_create(self):
        info = {
            "name": "billy-bob",
            "uid": "furblewurbleburble",
            "netboot_enabled": True}
        machine = machine_from_dict(info)

        self.assertEquals(machine.instance_id, "furblewurbleburble")
        self.assertEquals(machine.dns_name, "billy-bob")
        self.assertEquals(machine.private_dns_name, "billy-bob")
        self.assertEquals(machine.state, "pending")
Esempio n. 4
0
    def test_create(self):
        info = {
            "name": "billy-bob",
            "uid": "furblewurbleburble",
            "netboot_enabled": True
        }
        machine = machine_from_dict(info)

        self.assertEquals(machine.instance_id, "furblewurbleburble")
        self.assertEquals(machine.dns_name, "billy-bob")
        self.assertEquals(machine.private_dns_name, "billy-bob")
        self.assertEquals(machine.state, "pending")