def test___init__(self, *_): self.assertIsInstance( GoogleCloudProvider(id=1, credentials_file="test", project="unit test"), BaseProvider) self.assertIsInstance(GoogleCloudProvider(id=1), BaseProvider)
def _get_provider(*args): '''Returns a mock GoogleCloudProvider object to use in testing. :type return: GoogleCloudProvider ''' return GoogleCloudProvider(id=1, project="mock")