'CFN instances automatically create the `ec2-user` admin user.'

def test_default_instance_user(self):

    return_server = self.fc.servers.list()[1]
    instance = self._setup_test_instance(return_server, 'default_user')
    metadata = instance.metadata_get()
    self.m.StubOutWithMock(nova.NovaClientPlugin, 'build_userdata')
    nova.NovaClientPlugin.build_userdata(metadata, 'wordpress', 'ec2-user')
    self.m.ReplayAll()
    scheduler.TaskRunner(instance.create)()
    self.m.VerifyAll()
