package aws

import (
  "testing"

  "github.com/hashicorp/terraform/helper/resource"
)

func TestAccAWSBillingServiceAccount_basic(t *testing.T) {
  resource.Test(t, resource.TestCase{
    PreCheck:  func() { testAccPreCheck(t) },
    Providers: testAccProviders,
    Steps: []resource.TestStep{
      resource.TestStep{
        Config: testAccCheckAwsBillingServiceAccountConfig,
        Check: resource.ComposeTestCheckFunc(
          resource.TestCheckResourceAttr("data.aws_billing_service_account.main", "id", "386209384616"),
          resource.TestCheckResourceAttr("data.aws_billing_service_account.main", "arn", "arn:aws:iam::386209384616:root"),
        ),
      }
    },
  })
}

const testAccCheckAwsBillingServiceAccountConfig = `
data "aws_billing_service_account" "main" { }
`

package aws

import (
	"testing"

	"github.com/hashicorp/terraform/helper/resource"
)

func TestAccAWSBillingServiceAccount_basic(t *testing.T) {
	resource.Test(t, resource.TestCase{
		PreCheck:  func() { testAccPreCheck(t) },
		Providers: testAccProviders,
		Steps: []resource.TestStep{
			resource.TestStep{
				Config: testAccCheckAwsBillingServiceAccountConfig,
				Check: resource.ComposeTestCheckFunc(
					resource.TestCheckResourceAttr("data.aws_billing_service_account.main", "id", "386209384616"),
					resource.TestCheckResourceAttr("data.aws_billing_service_account.main", "arn", "arn:aws:iam::386209384616:root"),
				),
			},
		},
	})
}

const testAccCheckAwsBillingServiceAccountConfig = `
data "aws_billing_service_account" "main" { }
`

Format with tabs, add missing comma
Format with tabs, add missing comma
