Path: blob/develop/tests/functional/route53domains/test_view_billing.py
1567 views
# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.1#2# Licensed under the Apache License, Version 2.0 (the "License"). You3# may not use this file except in compliance with the License. A copy of4# the License is located at5#6# http://aws.amazon.com/apache2.0/7#8# or in the "license" file accompanying this file. This file is9# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF10# ANY KIND, either express or implied. See the License for the specific11# language governing permissions and limitations under the License.12from awscli.testutils import BaseAWSCommandParamsTest131415class TestViewBilling(BaseAWSCommandParamsTest):1617prefix = 'route53domains view-billing'1819def test_accepts_start(self):20command = self.prefix + ' --start 2'21expected_params = {22'Start': '2'23}24self.assert_params_for_cmd(command, expected_params)2526def test_accepts_start_time(self):27command = self.prefix + ' --start-time 2'28expected_params = {29'Start': '2'30}31self.assert_params_for_cmd(command, expected_params)3233def test_accepts_end_time(self):34command = self.prefix + ' --end-time 2'35expected_params = {36'End': '2'37}38self.assert_params_for_cmd(command, expected_params)394041