def test_node_settings_full_bucket(self, mock_drop): mock_drop.return_value = '' s3 = AddonS3NodeSettings(owner=self.project) s3.bucket = 'bucket' assert_equals(s3.to_json(self.project.creator)['has_bucket'], 1)
def test_node_settings_user_auth(self, mock_drop): mock_drop.return_value = '' s3 = AddonS3NodeSettings(owner=self.project) assert_equals(s3.to_json(self.project.creator)['user_has_auth'], 1)
def test_node_settings_empty_bucket(self, mock_is_valid): mock_is_valid.return_value = True s3 = AddonS3NodeSettings(owner=self.project) assert_equals(s3.to_json(self.project.creator)['has_bucket'], 0)