예제 #1
0
파일: test_client.py 프로젝트: TouK/vumi-go
    def test_replace_dashboard(self):
        client = FakeDiamondashApiClient()
        client.replace_dashboard({'some': 'dashboard'})

        self.assertEqual(client.get_requests(), [{
            'method': 'put',
            'url': 'dashboards',
            'data': {'some': 'dashboard'},
        }])
예제 #2
0
    def test_replace_dashboard(self):
        client = FakeDiamondashApiClient()
        client.replace_dashboard({'some': 'dashboard'})

        self.assertEqual(client.get_requests(), [{
            'method': 'put',
            'url': 'dashboards',
            'data': {
                'some': 'dashboard'
            },
        }])