コード例 #1
0
    def test___init__(self, *_):
        self.assertIsInstance(
            GoogleCloudProvider(id=1,
                                credentials_file="test",
                                project="unit test"), BaseProvider)

        self.assertIsInstance(GoogleCloudProvider(id=1), BaseProvider)
コード例 #2
0
    def _get_provider(*args):
        '''Returns a mock GoogleCloudProvider object to use in testing.

            :type return: GoogleCloudProvider
        '''
        return GoogleCloudProvider(id=1, project="mock")